/* ==========================================================================
   Shared Variables – Shop & Product Pages
   ========================================================================== */

.iko-shop,
.iko-product {
    --iko-green: #447248;
    --iko-green-dark: #345838;
    --iko-green-light: #e8f0e9;
    --iko-orange: #F1941C;
    --iko-orange-light: #fef3e2;
    --iko-surface: #f9f8f4;
    --iko-text: #3d3d3d;
    --iko-radius: 12px;
    --iko-radius-sm: 8px;
    --iko-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --iko-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
    --iko-font: 'Roboto', sans-serif;

    font-family: var(--iko-font);
    color: var(--iko-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.shop-container,
.iko-product__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.shop-section { padding: 64px 0; }


/* ==========================================================================
   SHOP PAGE – Hero
   ========================================================================== */

.shop-hero {
    position: relative;
    background: linear-gradient(135deg, var(--iko-green-dark) 0%, var(--iko-green) 60%, #5a9a5f 100%);
    padding: 80px 24px 70px;
    text-align: center;
    overflow: hidden;
}

.shop-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(241, 148, 28, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.shop-hero__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.shop-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-hero__title {
    color: #fff;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
}

.shop-hero__title span { color: var(--iko-orange); }

.shop-hero__tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin: 0;
}


/* ==========================================================================
   SHOP PAGE – Category Pills
   ========================================================================== */

.shop-categories {
    background: #fff;
    border-bottom: 1px solid #eae7df;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.shop-categories__wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.shop-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    background: var(--iko-green-light);
    color: var(--iko-green-dark);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.shop-cat-pill:hover {
    background: var(--iko-green);
    color: #fff;
}

.shop-cat-pill--active {
    background: var(--iko-green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(68, 114, 72, 0.3);
}

.shop-cat-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.25);
}

.shop-cat-pill--active .shop-cat-pill__count,
.shop-cat-pill:hover .shop-cat-pill__count {
    background: rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   SHOP PAGE – Toolbar
   ========================================================================== */

.shop-toolbar {
    background: var(--iko-surface);
    padding: 16px 0;
    border-bottom: 1px solid #eae7df;
}

.shop-toolbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-toolbar__count .woocommerce-result-count {
    margin: 0;
    font-size: 0.875rem;
    color: #888;
}

.shop-toolbar__sort .woocommerce-ordering select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: var(--iko-radius-sm);
    font-size: 0.875rem;
    font-family: var(--iko-font);
    background: #fff;
}


/* ==========================================================================
   SHOP PAGE – Product Grid
   ========================================================================== */

.shop-products {
    background: var(--iko-surface);
}

.shop-products ul.products {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 600px) {
    .shop-products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .shop-products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .shop-products ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Override WooCommerce default widths */
.shop-products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}


/* ==========================================================================
   SHOP PAGE – Product Card
   ========================================================================== */

.iko-shop-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.iko-shop-card__inner {
    background: #fff;
    border: 1px solid #eae7df;
    border-radius: var(--iko-radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.iko-shop-card__inner:hover {
    transform: translateY(-5px);
    box-shadow: var(--iko-shadow-hover);
}

/* Sale badge */
.iko-shop-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--iko-orange);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 100px;
}

/* Image */
.iko-shop-card__image-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--iko-green-light);
}

.iko-shop-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.iko-shop-card__inner:hover .iko-shop-card__image {
    transform: scale(1.06);
}

.iko-shop-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iko-green);
    opacity: 0.3;
}

/* Body */
.iko-shop-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.iko-shop-card__category {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--iko-green);
    margin-bottom: 6px;
}

.iko-shop-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
    color: var(--iko-green-dark);
}

.iko-shop-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.iko-shop-card__title a:hover {
    color: var(--iko-orange);
}

.iko-shop-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--iko-orange);
    margin-bottom: 8px;
}

.iko-shop-card__price del {
    opacity: 0.5;
    font-size: 0.85em;
    font-weight: 400;
}

.iko-shop-card__price ins {
    text-decoration: none;
}

.iko-shop-card__excerpt {
    font-size: 0.8125rem;
    color: #888;
    margin: 0 0 16px;
    flex: 1;
}

/* Actions */
.iko-shop-card__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.iko-shop-card__actions .button,
.iko-shop-card__actions a.button,
.iko-shop-card__actions .add_to_cart_button {
    flex: 1;
    text-align: center;
    padding: 10px 16px !important;
    font-size: 0.75rem !important;
    border-radius: var(--iko-radius-sm) !important;
}

.iko-shop-card__details {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--iko-green);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.iko-shop-card__details:hover {
    color: var(--iko-orange);
}


/* ==========================================================================
   SHOP PAGE – Pagination
   ========================================================================== */

.shop-products nav.woocommerce-pagination {
    margin-top: 48px;
}

.shop-products nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    border: none;
}

.shop-products nav.woocommerce-pagination ul li {
    border: none;
}

.shop-products nav.woocommerce-pagination ul li a,
.shop-products nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--iko-radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #eae7df;
    background: #fff;
    color: var(--iko-green-dark);
}

.shop-products nav.woocommerce-pagination ul li a:hover {
    background: var(--iko-green);
    color: #fff;
    border-color: var(--iko-green);
}

.shop-products nav.woocommerce-pagination ul li span.current {
    background: var(--iko-green);
    color: #fff;
    border-color: var(--iko-green);
}


/* ==========================================================================
   SHOP PAGE – CTA
   ========================================================================== */

.shop-cta {
    background: #fff;
    padding: 80px 0;
}

.shop-cta__inner {
    text-align: center;
    background: linear-gradient(135deg, var(--iko-green-dark), var(--iko-green));
    border-radius: 20px;
    padding: 56px 40px;
    position: relative;
    overflow: hidden;
}

.shop-cta__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(241, 148, 28, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.shop-cta__title {
    color: #fff;
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 10px;
    position: relative;
}

.shop-cta__text {
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 1.0625rem;
    position: relative;
}

.shop-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    position: relative;
}

.shop-cta__button {
    display: inline-block;
    background: #fff;
    color: var(--iko-green-dark);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: var(--iko-radius-sm);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.shop-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--iko-green-dark);
}

.shop-cta__button--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.shop-cta__button--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}


/* ==========================================================================
   SINGLE PRODUCT – Breadcrumb
   ========================================================================== */

.iko-product__breadcrumb-wrap {
    background: var(--iko-surface);
    padding: 16px 0;
    border-bottom: 1px solid #eae7df;
}

.iko-product__breadcrumb-wrap .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.8125rem;
    box-shadow: none;
}


/* ==========================================================================
   SINGLE PRODUCT – Main Layout
   ========================================================================== */

.iko-product__main {
    background: #fff;
    padding: 48px 0;
}

.iko-product__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .iko-product__grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================================
   SINGLE PRODUCT – Gallery
   ========================================================================== */

.iko-product__gallery-main {
    border-radius: var(--iko-radius);
    overflow: hidden;
    border: 1px solid #eae7df;
    background: var(--iko-surface);
}

.iko-product__main-image-link {
    display: block;
}

.iko-product__main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.iko-product__gallery-main:hover .iko-product__main-image {
    transform: scale(1.03);
}

.iko-product__no-image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.9375rem;
}

/* Thumbnails */
.iko-product__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.iko-product__thumb {
    flex: 0 0 72px;
    height: 72px;
    border-radius: var(--iko-radius-sm);
    overflow: hidden;
    border: 2px solid #eae7df;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.iko-product__thumb--active,
.iko-product__thumb:hover {
    border-color: var(--iko-green);
    box-shadow: 0 0 0 2px rgba(68, 114, 72, 0.2);
}

.iko-product__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==========================================================================
   SINGLE PRODUCT – Info Panel
   ========================================================================== */

.iko-product__categories {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.iko-product__categories a {
    color: var(--iko-green);
    text-decoration: none;
}

.iko-product__categories a:hover {
    color: var(--iko-orange);
}

.iko-product__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--iko-green-dark);
    margin: 0 0 12px;
    line-height: 1.25;
}

.iko-product__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--iko-orange);
    margin-bottom: 16px;
    padding: 0;
    background: none;
    border: none;
}

.iko-product__price del {
    opacity: 0.5;
    font-size: 0.8em;
    font-weight: 400;
}

.iko-product__price ins {
    text-decoration: none;
    background: var(--iko-orange-light);
    padding: 2px 10px;
    border-radius: 4px;
}

.iko-product__short-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}


/* ==========================================================================
   SINGLE PRODUCT – Specs
   ========================================================================== */

.iko-product__specs {
    background: var(--iko-surface);
    border: 1px solid #eae7df;
    border-radius: var(--iko-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.iko-product__specs-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--iko-green-dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--iko-green-light);
}

.iko-product__specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.iko-product__spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.iko-product__spec-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    font-weight: 600;
}

.iko-product__spec-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--iko-green-dark);
}


/* ==========================================================================
   SINGLE PRODUCT – Add to Cart
   ========================================================================== */

.iko-product__add-to-cart .cart {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.iko-product__add-to-cart .quantity input {
    width: 72px;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: var(--iko-radius-sm);
    font-size: 1rem;
    font-weight: 600;
}

.iko-product__add-to-cart .single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
}


/* ==========================================================================
   SINGLE PRODUCT – Meta
   ========================================================================== */

.iko-product__meta {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.iko-product__meta-row {
    display: flex;
    gap: 8px;
    font-size: 0.8125rem;
    color: #888;
    margin-bottom: 6px;
}

.iko-product__meta-row span:first-child {
    font-weight: 600;
    color: #666;
}

.iko-product__meta-row a {
    color: var(--iko-green);
    text-decoration: none;
}

.iko-product__meta-row a:hover {
    color: var(--iko-orange);
}


/* ==========================================================================
   SINGLE PRODUCT – Tabs & Related
   ========================================================================== */

.iko-product__details {
    background: var(--iko-surface);
    padding: 48px 0;
}

.iko-product__related {
    background: #fff;
    padding: 48px 0;
}

.iko-product__related .related > h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--iko-green-dark);
    margin-bottom: 24px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .shop-hero { padding: 60px 20px 50px; }
    .shop-section { padding: 48px 0; }
    .shop-cta__inner { padding: 40px 24px; }

    .shop-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-cta__button { text-align: center; }

    .iko-product__main { padding: 32px 0; }
    .iko-product__specs-grid { grid-template-columns: 1fr; }

    .iko-shop-card__actions {
        flex-direction: column;
    }

    .iko-shop-card__actions .button,
    .iko-shop-card__actions a.button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iko-shop-card__inner,
    .iko-shop-card__image,
    .iko-product__main-image,
    .shop-cta__button {
        transition: none !important;
        transform: none !important;
    }
}