/* Terra Health - Component Styles */

/* ========================================
   No Products Found
   ======================================== */

.terra-no-products {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: var(--space-16) var(--space-8);
    grid-column: 1 / -1;
}

.terra-no-products__content {
    text-align: center;
    max-width: 500px;
}

.terra-no-products__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    color: var(--terra-gray-300);
    opacity: 0.6;
}

.terra-no-products__icon svg {
    width: 100%;
    height: 100%;
}

.terra-no-products__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--terra-black);
    margin-bottom: var(--space-4);
}

.terra-no-products__description {
    font-size: var(--text-base);
    color: var(--terra-gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.terra-no-products__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Legacy Grid Classes (for WooCommerce templates)
   ======================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1280px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Shop/Archive Page
   ======================================== */

.terra-shop-section,
.terra-category-section {
    padding: var(--space-8) 0 var(--space-14);
}

.terra-shop-section .section-heading,
.terra-category-section .section-heading {
    margin-bottom: var(--space-8);
}

.terra-shop-section .section-heading h1,
.terra-category-section .section-heading h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--terra-black);
}

.terra-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1280px) {
    .terra-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .terra-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .terra-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Subcategories */
.terra-subcategories {
    margin-bottom: var(--space-10);
}

.terra-subcategories h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
}

.terra-subcategory-card {
    display: block;
    background: var(--terra-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.terra-subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.terra-subcategory-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.terra-subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terra-subcategory-content {
    padding: var(--space-4);
    text-align: center;
}

.terra-subcategory-content h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--terra-black);
    margin-bottom: var(--space-1);
}

.terra-subcategory-content p {
    font-size: var(--text-sm);
    color: var(--terra-gray-500);
}

.terra-category-description {
    margin-top: var(--space-3);
    font-size: var(--text-base);
    color: var(--terra-gray-600);
    max-width: 800px;
}

.terra-category-image {
    margin-top: var(--space-4);
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
}

.terra-category-image img {
    width: 100%;
    height: auto;
}

/* ========================================
   Banner (Top Promo Bar)
   ======================================== */

.terra-banner {
    height: var(--banner-height);
    background-color: var(--terra-green-dark);
    color: var(--terra-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.terra-banner__text {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.terra-banner__link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terra-banner__link:hover {
    opacity: 0.9;
}

/* ========================================
   Navbar
   ======================================== */

.terra-navbar {
    height: var(--navbar-height);
    background-color: var(--terra-white);
    border-bottom: 1px solid var(--terra-gray-200);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.terra-navbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terra-navbar__logo {
    display: flex;
    align-items: center;
}

.terra-navbar__logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--terra-green-dark);
    letter-spacing: -0.5px;
}

.terra-navbar__menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.terra-navbar__link {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--terra-gray-700);
    transition: color var(--transition-fast);
}

.terra-navbar__link:hover {
    color: var(--terra-black);
}

.terra-navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.terra-navbar__icon {
    width: 24px;
    height: 24px;
    color: var(--terra-black);
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.terra-navbar__icon:hover {
    color: var(--terra-green-dark);
}

.terra-navbar__cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background-color: var(--terra-green-dark);
    color: var(--terra-white);
    font-size: 11px;
    font-weight: var(--font-bold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terra-navbar__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.terra-navbar__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--terra-black);
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .terra-navbar__menu {
        display: none;
    }
    
    .terra-navbar__mobile-toggle {
        display: flex;
    }
}

/* ========================================
   Hero Section
   ======================================== */

.terra-hero {
    height: var(--hero-height);
    position: relative;
    overflow: hidden;
}

.terra-hero__background {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    margin: 0 var(--container-padding);
    overflow: hidden;
}

.terra-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terra-hero__placeholder {
    width: 100%;
    height: 100%;
}

.terra-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 calc(var(--container-padding) + var(--space-16));
    z-index: 1;
}

.terra-hero__title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--terra-black);
    max-width: 600px;
    margin-bottom: var(--space-6);
}

.terra-hero__subtitle {
    font-size: var(--text-lg);
    color: var(--terra-gray-600);
    max-width: 400px;
    margin-bottom: var(--space-8);
}

.terra-hero__cta {
    display: flex;
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .terra-hero__background {
        margin: 0 var(--container-padding);
        border-radius: 12px;
    }
    
    .terra-hero__content {
        padding: var(--space-8);
    }
    
    .terra-hero__title {
        font-size: var(--text-3xl);
    }
}

/* ========================================
   Section Header
   ======================================== */

.terra-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-10);
}

.terra-section-header__text {
    flex: 1;
}

.terra-section-header__title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--terra-black);
    margin-bottom: var(--space-2);
}

.terra-section-header__subtitle {
    font-size: var(--text-lg);
    color: var(--terra-gray-600);
    max-width: 700px;
}

@media (max-width: 768px) {
    .terra-section-header {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .terra-section-header__title {
        font-size: var(--text-3xl);
    }
}

/* ========================================
   Product Card
   ======================================== */

.terra-product-card {
    display: flex;
    flex-direction: column;
    background: var(--terra-white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    min-width: 0; /* Prevent flex children from overflowing */
    width: 100%; /* Ensure card takes full grid cell */
}

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

.terra-product-card__link {
    display: block;
    text-decoration: none;
}

.terra-product-card__image {
    width: 100%;
    aspect-ratio: 434 / 530;
    position: relative;
    overflow: hidden;
}

.terra-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.terra-product-card:hover .terra-product-card__image img {
    transform: scale(1.05);
}

.terra-product-card__placeholder {
    width: 100%;
    height: 100%;
}

.terra-product-card__badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background-color: var(--terra-sale);
    color: var(--terra-white);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: 4px;
    z-index: 1;
}

.terra-product-card__info {
    padding: var(--space-4) 0;
    text-align: center;
}

.terra-product-card__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--terra-black);
    margin-bottom: var(--space-2);
}

.terra-product-card__title a {
    color: var(--terra-black);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.terra-product-card__title a:hover {
    color: var(--terra-green-dark);
}

.terra-product-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.terra-product-card__reviews {
    font-size: var(--text-xs);
    color: var(--terra-gray-500);
}

.terra-product-card__price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.terra-product-card__price-current {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--terra-black);
}

.terra-product-card__price-old {
    font-size: var(--text-lg);
    color: var(--terra-gray-400);
    text-decoration: line-through;
}

.terra-product-card__button {
    width: 100%;
}

.terra-product-card__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Products Block
   ======================================== */

.terra-products-block {
    padding: var(--space-14) 0;
}

.terra-products-block__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.terra-products-block__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-12);
}

.terra-products-block__slider {
    width: 224px;
    height: 2px;
    background-color: var(--terra-gray-200);
    border-radius: 1px;
    position: relative;
}

.terra-products-block__slider-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background-color: var(--terra-black);
    border-radius: 1px;
}

.terra-products-block__arrows {
    display: flex;
    gap: var(--space-2);
}

@media (max-width: 1280px) {
    .terra-products-block__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .terra-products-block__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .terra-products-block__grid {
        grid-template-columns: 1fr;
    }

    /* Tighter Products Block spacing on mobile (carousel sections) */
    .terra-products-block .terra-section-header {
        margin-bottom: var(--space-5);
    }

    .terra-products-block__footer {
        margin-top: var(--space-6);
    }
}

/* ========================================
   UGC Section (Video Testimonials)
   ======================================== */

.terra-ugc {
    padding: var(--space-14) 0;
    background-color: var(--terra-white);
}

.terra-ugc__grid {
    display: grid;
    grid-template-columns: 1fr repeat(3, 434px);
    gap: var(--space-6);
}

.terra-ugc__intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--space-14);
}

.terra-ugc__rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.terra-ugc__rating-text {
    font-size: var(--text-lg);
    color: var(--terra-gray-600);
}

.terra-ugc__title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.terra-ugc__description {
    font-size: var(--text-lg);
    color: var(--terra-gray-600);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.terra-ugc__video-card {
    display: flex;
    flex-direction: column;
}

.terra-ugc__video {
    width: 100%;
    height: 772px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.terra-ugc__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terra-ugc__video-placeholder {
    width: 100%;
    height: 100%;
}

.terra-ugc__video-link {
    display: block;
    text-decoration: none;
}

.terra-ugc__video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terra-ugc__video-info {
    padding-top: var(--space-4);
}

.terra-ugc__video-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--terra-black);
    margin-bottom: var(--space-1);
}

.terra-ugc__video-author {
    font-size: var(--text-lg);
    color: var(--terra-gray-500);
}

@media (max-width: 1280px) {
    .terra-ugc__grid {
        grid-template-columns: 1fr repeat(2, 1fr);
    }
    
    .terra-ugc__video {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .terra-ugc__grid {
        grid-template-columns: 1fr;
    }
    
    .terra-ugc__video {
        height: 500px;
    }
}

/* ========================================
   Collection Section
   ======================================== */

.terra-collection {
    padding: var(--space-14) 0;
}

.terra-collection__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.terra-collection__card {
    position: relative;
    height: 586px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.terra-collection__card:hover {
    transform: scale(1.02);
}

.terra-collection__card-bg {
    position: absolute;
    inset: 0;
}

.terra-collection__card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terra-collection__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-8);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: var(--terra-white);
}

.terra-collection__card-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
}

.terra-collection__card-link {
    font-size: var(--text-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .terra-collection__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .terra-collection__card {
        height: 450px;
    }
}

@media (max-width: 640px) {
    .terra-collection__grid {
        grid-template-columns: 1fr;
    }
    
    .terra-collection__card {
        height: 350px;
    }
}

/* ========================================
   Testimonials Section
   ======================================== */

.terra-testimonials {
    padding: var(--space-14) 0;
}

.terra-testimonials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    min-height: 892px;
}

.terra-testimonials__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-8) 0;
    position: relative;
}

.terra-testimonial-slide {
    display: none;
}

.terra-testimonial-slide.is-active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.terra-testimonials__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.terra-testimonials__author {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--terra-gray-600);
}

.terra-testimonials__quote {
    font-size: var(--text-4xl);
    font-weight: var(--font-normal);
    line-height: var(--leading-snug);
    color: var(--terra-black);
}

.terra-testimonials__image {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

.terra-testimonials__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terra-testimonials__placeholder {
    width: 100%;
    height: 100%;
    min-height: 892px;
}

@media (max-width: 1024px) {
    .terra-testimonials__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .terra-testimonials__placeholder {
        min-height: 400px;
    }
    
    .terra-testimonials__quote {
        font-size: var(--text-2xl);
    }
}

/* ========================================
   Favorites Section (with Promo Banner)
   ======================================== */

.terra-favorites {
    padding: var(--space-14) 0;
}

.terra-favorites__grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.terra-favorites__grid-row--promo {
    grid-template-columns: repeat(2, 1fr) 2fr;
}

.terra-favorites__promo {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.terra-favorites__promo-image {
    width: 100%;
    height: 100%;
    min-height: 686px;
    object-fit: cover;
}

.terra-favorites__promo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 686px;
}

.terra-favorites__promo-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-8);
    color: var(--terra-white);
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.terra-favorites__promo-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

@media (max-width: 1280px) {
    .terra-favorites__grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .terra-favorites__grid-row--promo {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .terra-favorites__promo {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .terra-favorites__grid-row,
    .terra-favorites__grid-row--promo {
        grid-template-columns: 1fr;
    }
    
    .terra-favorites__promo {
        grid-column: span 1;
    }
}

/* ========================================
   Timer Section
   ======================================== */

.terra-timer {
    padding: var(--space-14) 0;
}

.terra-timer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    min-height: 892px;
}

.terra-timer__image {
    border-radius: 16px;
    overflow: hidden;
}

.terra-timer__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terra-timer__placeholder {
    width: 100%;
    height: 100%;
    min-height: 892px;
}

.terra-timer__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-8);
    background-color: var(--terra-gray-50);
    border-radius: 16px;
}

.terra-timer__title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.terra-timer__subtitle {
    font-size: var(--text-lg);
    color: var(--terra-gray-600);
    margin-bottom: var(--space-10);
}

.terra-timer__divider {
    width: 100%;
    max-width: 860px;
    height: 1px;
    background-color: var(--terra-gray-300);
    margin: var(--space-8) 0;
}

.terra-timer__countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    margin-bottom: var(--space-8);
}

.terra-timer__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.terra-timer__number {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    color: var(--terra-black);
    line-height: 1;
}

.terra-timer__label {
    font-size: var(--text-lg);
    color: var(--terra-gray-600);
    margin-top: var(--space-1);
}

@media (max-width: 1024px) {
    .terra-timer__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .terra-timer__placeholder {
        min-height: 400px;
    }
    
    .terra-timer__number {
        font-size: var(--text-4xl);
    }
}

/* ========================================
   Blog Section
   ======================================== */

.terra-blog {
    padding: var(--space-14) 0;
}

.terra-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.terra-blog__card {
    display: flex;
    flex-direction: column;
}

.terra-blog__card-image {
    width: 100%;
    height: 390px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.terra-blog__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terra-blog__card-placeholder {
    width: 100%;
    height: 100%;
}

.terra-blog__card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.terra-blog__card-category {
    font-size: var(--text-lg);
    color: var(--terra-gray-600);
}

.terra-blog__card-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    color: var(--terra-gray-500);
}

.terra-blog__card-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-snug);
    color: var(--terra-black);
    margin-bottom: var(--space-6);
}

@media (max-width: 1024px) {
    .terra-blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .terra-blog__grid {
        grid-template-columns: 1fr;
    }
    
    .terra-blog__card-image {
        height: 280px;
    }
}

/* ========================================
   Trust Badges Section
   ======================================== */

.terra-trust {
    padding: var(--space-14) 0;
}

.terra-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.terra-trust__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.terra-trust__icon {
    width: 32px;
    height: 32px;
    color: var(--terra-black);
}

.terra-trust__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--terra-black);
}

.terra-trust__description {
    font-size: var(--text-lg);
    color: var(--terra-gray-600);
}

@media (max-width: 768px) {
    .terra-trust__grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Instagram Section
   ======================================== */

.terra-instagram {
    padding: var(--space-14) 0;
}

.terra-instagram__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
}

.terra-instagram__card {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.terra-instagram__card:hover {
    transform: scale(1.03);
}

.terra-instagram__placeholder {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .terra-instagram__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .terra-instagram__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Footer
   ======================================== */

.terra-footer {
    padding: var(--space-14) 0;
    background-color: var(--terra-gray-50);
}

.terra-footer__top {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) 1.5fr;
    gap: var(--space-8);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--terra-gray-200);
}

.terra-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.terra-footer__logo {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--terra-green-dark);
}

.terra-footer__tagline {
    font-size: var(--text-base);
    color: var(--terra-gray-600);
    max-width: 280px;
}

.terra-footer__social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.terra-footer__social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--terra-gray-200);
    transition: background-color var(--transition-fast);
}

.terra-footer__social-icon:hover {
    background-color: var(--terra-gray-300);
}

.terra-footer__column-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--terra-black);
    margin-bottom: var(--space-4);
}

.terra-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.terra-footer__link {
    font-size: var(--text-base);
    color: var(--terra-gray-600);
    transition: color var(--transition-fast);
}

.terra-footer__link:hover {
    color: var(--terra-black);
}

.terra-footer__newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.terra-footer__newsletter-input {
    display: flex;
    gap: var(--space-2);
}

.terra-footer__input {
    flex: 1;
    height: 48px;
    padding: 0 var(--space-4);
    border: 1px solid var(--terra-gray-300);
    border-radius: 8px;
    font-size: var(--text-base);
}

.terra-footer__input:focus {
    outline: none;
    border-color: var(--terra-green-dark);
}

.terra-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
}

.terra-footer__copyright {
    font-size: var(--text-sm);
    color: var(--terra-gray-500);
}

.terra-footer__payments {
    display: flex;
    gap: var(--space-3);
}

.terra-footer__payment-icon {
    width: 40px;
    height: 24px;
    background-color: var(--terra-gray-200);
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .terra-footer__top {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .terra-footer__brand {
        grid-column: span 3;
    }
}

@media (max-width: 640px) {
    .terra-footer__top {
        grid-template-columns: 1fr;
    }
    
    .terra-footer__brand {
        grid-column: span 1;
    }
    
    .terra-footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
    }
}

/* ========================================
   Mobile Menu
   ======================================== */

@media (max-width: 768px) {
    .terra-navbar__menu {
        position: fixed;
        top: calc(var(--banner-height) + var(--navbar-height));
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--terra-white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-6);
        gap: 0;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: var(--z-modal);
        display: flex;
    }
    
    .terra-navbar__menu.is-open {
        transform: translateX(0);
    }
    
    .terra-navbar__link {
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--terra-gray-200);
        font-size: var(--text-lg);
    }
    
    .terra-navbar__mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .terra-navbar__mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    
    .terra-navbar__mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* ========================================
   Search Modal
   ======================================== */

/* Search Mega Menu */
.terra-search-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--navbar-height) var(--space-4) var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    background-color: transparent;
}

.terra-search-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.terra-search-menu__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.terra-search-menu__content {
    position: relative;
    width: 100%;
    max-width: 800px;
    background-color: var(--terra-white);
    border-radius: 4px;
    padding: var(--space-6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transform: scaleY(0.95);
    opacity: 0;
    transition: all var(--transition-base);
}

.terra-search-menu[aria-hidden="false"] .terra-search-menu__content {
    transform: scaleY(1);
    opacity: 1;
}

.terra-search-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.terra-search-menu__title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--terra-black);
    margin: 0;
}

.terra-search-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terra-gray-500);
    transition: color var(--transition-fast);
    padding: 0;
}

.terra-search-menu__close:hover {
    color: var(--terra-black);
}

.terra-search-menu__form {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.terra-search-menu__input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-4);
    border: 2px solid var(--terra-gray-300);
    border-radius: 2px;
    background-color: var(--terra-white);
    transition: all var(--transition-fast);
    height: 56px;
}

.terra-search-menu__input-wrapper:focus-within {
    border-color: var(--terra-green-dark);
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.1);
}

.terra-search-menu__input-icon {
    width: 20px;
    height: 20px;
    stroke: var(--terra-gray-500);
    flex-shrink: 0;
    transition: stroke var(--transition-fast);
}

.terra-search-menu__input-wrapper:focus-within .terra-search-menu__input-icon {
    stroke: var(--terra-green-dark);
}

.terra-search-menu__input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: var(--text-base);
    font-family: var(--font-primary);
    color: var(--terra-black);
    min-width: 0;
    padding: 0;
}

.terra-search-menu__input::placeholder {
    color: var(--terra-gray-400);
}

.terra-search-menu__submit {
    width: 56px;
    height: 56px;
    border: none;
    background-color: var(--terra-green-dark);
    color: var(--terra-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.terra-search-menu__submit:hover {
    background-color: var(--terra-black);
    transform: scale(1.02);
}

.terra-search-menu__submit:active {
    transform: scale(0.98);
}

.terra-search-menu__suggestions {
    border-top: 1px solid var(--terra-gray-200);
    padding-top: var(--space-6);
}

.terra-search-menu__section {
    margin-bottom: var(--space-6);
}

.terra-search-menu__section:last-child {
    margin-bottom: 0;
}

.terra-search-menu__section-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--terra-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 var(--space-3) 0;
}

.terra-search-menu__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.terra-search-menu__tag {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--terra-gray-300);
    border-radius: 2px;
    font-size: var(--text-sm);
    color: var(--terra-gray-700);
    background-color: var(--terra-white);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.terra-search-menu__tag:hover {
    border-color: var(--terra-green-dark);
    color: var(--terra-green-dark);
    background-color: rgba(45, 90, 39, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .terra-search-menu {
        padding: calc(var(--navbar-height) + var(--space-2)) var(--space-4) var(--space-4);
    }
    
    .terra-search-menu__content {
        max-width: 100%;
        padding: var(--space-4);
    }
    
    .terra-search-menu__form {
        flex-direction: column;
        margin-bottom: var(--space-4);
    }
    
    .terra-search-menu__submit {
        width: 100%;
    }
}

/* ========================================
   Carousel/Slider Fixes
   ======================================== */

/* Products carousel container (Best sellers, etc.) */
.terra-products-block__grid[data-products-carousel] {
    display: flex;
    gap: var(--space-6);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none; /* Firefox */
}

.terra-products-block__grid[data-products-carousel]::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.terra-products-block__grid[data-products-carousel] > * {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.terra-products-block__grid[data-products-carousel] .terra-product-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.terra-products-block__grid[data-products-carousel].is-single {
    overflow-x: hidden;
    scroll-snap-type: none;
}

.terra-products-block__grid[data-products-carousel].is-single .terra-product-card {
    flex: 0 0 100%;
    min-width: 100%;
}

.terra-products-block__grid[data-products-carousel] .terra-product-card {
    flex: 0 0 calc(25% - var(--space-6) * 3 / 4);
    min-width: calc(25% - var(--space-6) * 3 / 4);
}

@media (max-width: 1280px) {
    .terra-products-block__grid[data-products-carousel] .terra-product-card {
        flex: 0 0 calc(33.333% - var(--space-6) * 2 / 3);
        min-width: calc(33.333% - var(--space-6) * 2 / 3);
    }
}

@media (max-width: 1024px) {
    .terra-products-block__grid[data-products-carousel] .terra-product-card {
        flex: 0 0 calc(50% - var(--space-6) / 2);
        min-width: calc(50% - var(--space-6) / 2);
    }
}

@media (max-width: 640px) {
    .terra-products-block__grid[data-products-carousel] .terra-product-card {
        flex: 0 0 84%;
        min-width: 84%;
        transition:
            transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 360ms cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform, opacity, box-shadow;
        opacity: 0.94;
        transform: scale(0.985);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    }

    .terra-products-block__grid[data-products-carousel] .terra-product-card.is-active {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
    }

    /* Mobile-specific Product Card sizing for carousel */
    .terra-products-block__grid[data-products-carousel] .terra-product-card__image {
        aspect-ratio: 1 / 1;
    }

    .terra-products-block__grid[data-products-carousel] .terra-product-card__info {
        padding: var(--space-3) 0;
    }

    .terra-products-block__grid[data-products-carousel] .terra-product-card__title {
        font-size: var(--text-xl);
    }

    .terra-products-block__grid[data-products-carousel] .terra-product-card__reviews {
        font-size: var(--text-xs);
    }

    .terra-products-block__grid[data-products-carousel] .terra-product-card__price-current,
    .terra-products-block__grid[data-products-carousel] .terra-product-card__price-old {
        font-size: var(--text-base);
    }

    .terra-products-block__grid[data-products-carousel] .terra-product-card__button {
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .terra-products-block__grid[data-products-carousel],
    .terra-instagram__grid[data-instagram-carousel] {
        scroll-behavior: auto;
    }

    .terra-products-block__grid[data-products-carousel] .terra-product-card {
        transition: none;
    }
}

/* Instagram carousel */
.terra-instagram__grid[data-instagram-carousel] {
    display: flex;
    gap: var(--space-6);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none; /* Firefox */
}

.terra-instagram__grid[data-instagram-carousel]::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.terra-instagram__grid[data-instagram-carousel] > * {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.terra-instagram__grid[data-instagram-carousel] .terra-instagram__card {
    flex: 0 0 calc(20% - var(--space-6) * 4 / 5);
    min-width: calc(20% - var(--space-6) * 4 / 5);
}

@media (max-width: 1024px) {
    .terra-instagram__grid[data-instagram-carousel] .terra-instagram__card {
        flex: 0 0 calc(33.333% - var(--space-6) * 2 / 3);
        min-width: calc(33.333% - var(--space-6) * 2 / 3);
    }
}

@media (max-width: 640px) {
    .terra-instagram__grid[data-instagram-carousel] .terra-instagram__card {
        flex: 0 0 calc(50% - var(--space-6) / 2);
        min-width: calc(50% - var(--space-6) / 2);
    }
}

/* UGC Video cards responsive */
@media (max-width: 1280px) {
    .terra-ugc__grid {
        grid-template-columns: 1fr repeat(2, 1fr);
    }
    
    .terra-ugc__video-card:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .terra-ugc__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .terra-ugc__intro {
        padding-top: 0;
    }
    
    .terra-ugc__video-card:last-child {
        display: block;
    }
    
    .terra-ugc__video {
        height: 400px;
    }
}

/* ========================================
   Image Fallbacks & Loading States
   ======================================== */

.terra-product-card__image img,
.terra-blog__card-image img,
.terra-collection__card-bg,
.terra-instagram__card img,
.terra-ugc__video img,
.terra-testimonials__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--terra-gray-100);
}

.terra-product-card__image img[src=""],
.terra-product-card__image img:not([src]),
.terra-blog__card-image img[src=""],
.terra-blog__card-image img:not([src]),
.terra-instagram__card img[src=""],
.terra-instagram__card img:not([src]),
.terra-ugc__video img[src=""],
.terra-ugc__video img:not([src]) {
    display: none;
}

/* Show placeholder when image fails */
.terra-product-card__image:not(:has(img)),
.terra-blog__card-image:not(:has(img)),
.terra-instagram__card:not(:has(img)),
.terra-ugc__video:not(:has(img)) {
    background: linear-gradient(135deg, var(--terra-gray-100) 0%, var(--terra-gray-200) 100%);
}

/* Product card link styling */
.terra-product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.terra-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.terra-product-card__title a:hover {
    color: var(--terra-green-dark);
}

/* ========================================
   Navbar Cart Badge Animation
   ======================================== */

.terra-navbar__cart {
    position: relative;
}

.terra-navbar__cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: var(--terra-green-dark);
    color: var(--terra-white);
    font-size: 11px;
    font-weight: var(--font-bold);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.terra-navbar__cart-count:empty,
.terra-navbar__cart-count[data-count="0"] {
    display: none;
}

.terra-navbar__cart-count.is-updating {
    transform: scale(1.2);
}

/* ========================================
   Testimonials Slide Transitions
   ======================================== */

.terra-testimonial-slide {
    display: none;
}

.terra-testimonial-slide.is-active,
.terra-testimonial-slide:first-child {
    display: block;
}

/* ========================================
   UGC Video Play Button Hover
   ======================================== */

.terra-ugc__video-link {
    display: block;
    position: relative;
}

.terra-ugc__video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.terra-ugc__video-link:hover .terra-ugc__video-play {
    background-color: var(--terra-white);
    transform: translate(-50%, -50%) scale(1.1);
}

.terra-ugc__video-play svg {
    margin-left: 4px;
    color: var(--terra-green-dark);
}

/* ========================================
   Empty States
   ======================================== */

.terra-products-block__empty,
.terra-blog__empty,
.terra-collection__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-12);
    color: var(--terra-gray-500);
    font-size: var(--text-lg);
}

/* ========================================
   Animation Classes
   ======================================== */

/* Only animate when JavaScript has initialized and added the animate class */
.terra-animate .terra-product-card,
.terra-animate .terra-collection__card,
.terra-animate .terra-blog__card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.terra-animate .terra-product-card.is-visible,
.terra-animate .terra-collection__card.is-visible,
.terra-animate .terra-blog__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Instagram Placeholder
   ======================================== */

.terra-instagram__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terra-instagram__card {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

/* ========================================
   UGC Video Placeholder
   ======================================== */

.terra-ugc__video .terra-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ========================================
   Single Product Page
   ======================================== */

.terra-product-section {
    padding: var(--space-8) 0 var(--space-14);
}

.terra-product-gallery {
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-4));
}

.terra-product-main-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.terra-product-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.terra-product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
}

.terra-product-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.terra-product-thumbnail:hover,
.terra-product-thumbnail.active {
    border-color: var(--terra-green-dark);
}

.terra-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terra-product-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.terra-product-page-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--terra-black);
}

.terra-product-short-description {
    font-size: var(--text-base);
    color: var(--terra-gray-600);
    line-height: 1.6;
}

.terra-product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.terra-review-count {
    font-size: var(--text-sm);
    color: var(--terra-gray-500);
}

.terra-product-price {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--terra-black);
}

.terra-product-price del {
    color: var(--terra-gray-400);
    font-weight: var(--font-normal);
    margin-left: var(--space-2);
}

.terra-product-price ins {
    text-decoration: none;
}

.terra-stock-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

.terra-stock-in-stock {
    background-color: var(--terra-green-light);
    color: var(--terra-green-dark);
}

.terra-stock-out-stock {
    background-color: var(--terra-red-light, #fef2f2);
    color: var(--terra-red, #dc2626);
}

.terra-quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--terra-gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.terra-quantity-minus,
.terra-quantity-plus {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terra-white);
    border: none;
    cursor: pointer;
    font-size: var(--text-lg);
    color: var(--terra-black);
    transition: background-color var(--transition-fast);
}

.terra-quantity-minus:hover,
.terra-quantity-plus:hover {
    background-color: var(--terra-gray-100);
}

.terra-quantity-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--terra-gray-300);
    border-right: 1px solid var(--terra-gray-300);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
}

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

.terra-product-actions {
    margin-top: var(--space-2);
}

.terra-product-actions .single_add_to_cart_button {
    width: 100%;
    padding: var(--space-4);
    background-color: var(--terra-green-dark);
    color: var(--terra-white);
    border: none;
    border-radius: 8px;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.terra-product-actions .single_add_to_cart_button:hover {
    background-color: var(--terra-green-darker, #1e4a1c);
}

.terra-product-attributes {
    margin-top: var(--space-4);
}

.terra-product-attributes h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
}

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

.terra-attributes-table th,
.terra-attributes-table td {
    padding: var(--space-2) var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--terra-gray-200);
}

.terra-attributes-table th {
    font-weight: var(--font-medium);
    color: var(--terra-gray-600);
    width: 40%;
}

.terra-product-categories,
.terra-product-tags {
    font-size: var(--text-sm);
    color: var(--terra-gray-600);
}

.terra-product-categories a,
.terra-product-tags a {
    color: var(--terra-green-dark);
    text-decoration: none;
}

.terra-product-categories a:hover,
.terra-product-tags a:hover {
    text-decoration: underline;
}

/* Product Tabs */
.terra-product-tabs {
    margin-top: var(--space-12);
}

.terra-tabs-nav {
    display: flex;
    gap: var(--space-4);
    border-bottom: 1px solid var(--terra-gray-200);
    margin-bottom: var(--space-6);
}

.terra-tab-button {
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--terra-gray-600);
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.terra-tab-button:hover {
    color: var(--terra-black);
}

.terra-tab-button.active {
    color: var(--terra-green-dark);
    border-bottom-color: var(--terra-green-dark);
}

.terra-tab-pane {
    display: none;
}

.terra-tab-pane.active {
    display: block;
}

/* Related Products */
.terra-related-products {
    margin-top: var(--space-14);
    padding-top: var(--space-10);
    border-top: 1px solid var(--terra-gray-200);
}

.terra-related-products .terra-products-block__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1024px) {
    .terra-related-products .terra-products-block__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .terra-related-products .terra-products-block__grid {
        grid-template-columns: 1fr;
    }
    
    .terra-product-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .terra-tabs-nav {
        flex-wrap: wrap;
    }
}
