/* ═══════════════════════════════════════════
   Kokken — Single Product: Tabs & Related
   ═══════════════════════════════════════════ */

/* ── Κρύβουμε τελείως τα default WooCommerce tabs ── */
.woocommerce-tabs {
    display: none !important;
}

/* ════════════════════════════════════════════
   KK PRODUCT TABS — custom template
   ════════════════════════════════════════════ */

.kk-product-tabs {
    width: 100%;
    margin-top: 56px;
    clear: both;
}

/* ── Nav bar ── */
.kk-product-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
}

.kk-product-tabs__btn {
    padding: 15px 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #aaa;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    font-family: inherit;
}

.kk-product-tabs__btn:hover {
    color: #1a1a1a;
}

.kk-product-tabs__btn.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* ── Panels ── */
.kk-product-tabs__panel {
    display: none;
    padding: 36px 0;
}

.kk-product-tabs__panel.active {
    display: block;
}

/* Panel inner card */
.kk-product-tabs__panel > div,
.kk-product-tabs__panel > p,
.kk-product-tabs__panel > ul,
.kk-product-tabs__panel > table {
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 8px;
    padding: 28px 32px;
    box-sizing: border-box;
}

/* ── Description ── */
.kk-product-tabs__panel p {
    font-size: 14px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 8px;
}

.kk-product-tabs__panel ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.kk-product-tabs__panel ul li {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    padding: 10px 0;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kk-product-tabs__panel ul li:last-child {
    border-bottom: none;
}

.kk-product-tabs__panel ul li::before {
    content: '';
    width: 5px;
    height: 5px;
    min-width: 5px;
    border-radius: 50%;
    background: #cc0000;
    flex-shrink: 0;
}

/* ── Additional information table ── */
.kk-product-tabs__panel .woocommerce-product-attributes {
    width: 100% !important;
    border-collapse: collapse !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.kk-product-tabs__panel .woocommerce-product-attributes th,
.kk-product-tabs__panel .woocommerce-product-attributes td {
    padding: 11px 16px 11px 0 !important;
    font-size: 13px !important;
    border: none !important;
    border-bottom: 1px solid #ebebeb !important;
    text-align: left !important;
    vertical-align: top !important;
    background: none !important;
}

.kk-product-tabs__panel .woocommerce-product-attributes th {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    width: 220px !important;
}

.kk-product-tabs__panel .woocommerce-product-attributes td {
    color: #555 !important;
}

.kk-product-tabs__panel .woocommerce-product-attributes tr:last-child th,
.kk-product-tabs__panel .woocommerce-product-attributes tr:last-child td {
    border-bottom: none !important;
}

/* ── Brand tab ── */
#tab-pwb_tab-content {
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
}

#tab-pwb_tab-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

#tab-pwb_tab-content img {
    width: 90px !important;
    height: auto !important;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

/* ════════════════════════════════════════════
   RELATED PRODUCTS
   ════════════════════════════════════════════ */

.related.products {
    margin-top: 64px !important;
    padding-top: 48px !important;
    border-top: 1px solid #e8e8e8 !important;
    clear: both !important;
    width: 100% !important;
}

.related.products > h2 {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #999 !important;
    margin: 0 0 32px !important;
}

.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: start !important;
}

/* κάθε card να ΜΗΝ stretch-άρει: */
.related.products ul.products li.product {
    align-self: start !important;
    height: auto !important;
}

.related.products ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #efefef !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: auto !important;
    transition: border-color .2s, box-shadow .2s;
}

.related.products ul.products li.product:hover {
    border-color: #ddd !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.07) !important;
}

.related.products ul.products li.product a.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    padding: 20px 20px 12px !important;
    flex: 1 !important;
}

.related.products ul.products li.product img {
    width: 100% !important;
    height: 160px !important;
    object-fit: contain !important;
    display: block !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
}

.related.products ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    line-height: 1.5 !important;
    margin: 0 0 10px !important;
    /* Fixed height = 2 γραμμές × line-height 1.5 × font-size 13px */
    height: 39px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.related.products ul.products li.product .price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    display: block !important;
    margin: 0 !important;
}

.related.products ul.products li.product .button {
    display: block !important;
    margin: 12px 20px 20px !important;
    padding: 11px 16px !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: #1a1a1a !important;
    background: transparent !important;
    border: 1.5px solid #1a1a1a !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    transition: background .15s, color .15s !important;
    box-sizing: border-box !important;
    width: auto !important;
}

.related.products ul.products li.product .button:hover {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* ── Mobile ── */
@media ( max-width: 900px ) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media ( max-width: 480px ) {
    .kk-product-tabs__btn {
        padding: 12px 14px;
        font-size: 10px;
    }
    .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}


/* ── Related products: nuclear float reset ── */
.related.products ul.products::before,
.related.products ul.products::after {
    display: none !important;
    content: none !important;
}

.related.products ul.products li.product:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
    position: relative !important;
    vertical-align: top !important;
    align-self: start !important;
}



/* Αφαιρεί το product prev/next pagination */
.storefront-product-pagination {
    display: none !important;
}


/* ════════════════════════════════════════════
   SQUARE PRODUCT IMAGES — everywhere
   ════════════════════════════════════════════ */

/* Single product gallery — κύρια εικόνα */
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery .flex-viewport {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .flex-viewport img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;  /* contain = δεν κόβεται, contain με λευκό χώρο */
    display: block !important;
}

/* Thumbnails στο gallery */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
    aspect-ratio: 1 / 1 !important;
}

/* Shop / archive grid */
ul.products li.product a img,
ul.products li.product .attachment-woocommerce_thumbnail {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Related products (override το υπάρχον height: 160px) */
.related.products ul.products li.product img {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;  /* αντικαθιστά το 160px */
    object-fit: contain !important;
    background: #fff !important;
}