/* GB Collections page - asymmetric tile grid + product grid */

body.page-template-page-collections .entry-header,
body.page-template-page-collections .ast-page-header-section { display: none !important; }
body.page-template-page-collections .ast-container { max-width: 100% !important; padding: 0 !important; }
body.page-template-page-collections .site-content,
body.page-template-page-collections .site-main { padding: 0 !important; }

.gb-collections-wrap { color: #e8eaee; }

/* Hero - reuses page-inner styles, but include locally for safety */
.gb-collections-wrap .gb-inner-hero {
    position: relative;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gb-collections-wrap .gb-inner-hero-medium { min-height: 380px; }
.gb-collections-wrap .gb-inner-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(17,35,55,0.7) 100%);
    z-index: 1;
}
.gb-collections-wrap .gb-inner-hero-inner { position: relative; z-index: 2; padding: 30px 40px; }
.gb-collections-wrap .gb-inner-hero-title {
    color: #ffffff !important;
    font-family: 'Cardo', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 60px !important;
    margin: 0 0 16px !important;
    text-shadow: 0 4px 22px rgba(0,0,0,0.6);
    letter-spacing: -0.01em;
}

/* ===== Category tile grid ===== */
.gb-col-categories {
    background: rgba(0,0,0,0.85);
    padding: 80px 20px;
}
.gb-col-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.gb-col-h2 {
    font-family: 'Cardo', Georgia, serif !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center;
    margin: 0 0 40px !important;
    letter-spacing: -0.01em;
}

.gb-col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .gb-col-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gb-col-grid { grid-template-columns: 1fr; } }

.gb-col-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none !important;
    transition: transform 0.3s ease;
}
/* Optional asymmetric variants */
.gb-col-tile-wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.gb-col-tile-tall { grid-row: span 2; aspect-ratio: 4 / 10; }
@media (max-width: 900px) {
    .gb-col-tile-wide,
    .gb-col-tile-tall { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
}

.gb-col-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}
.gb-col-tile:hover .gb-col-tile-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}

.gb-col-tile-content {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 2;
    color: #ffffff;
    transition: transform 0.3s ease;
}
.gb-col-tile:hover .gb-col-tile-content {
    transform: translateY(-4px);
}

.gb-col-tile-name {
    color: #ffffff !important;
    font-family: 'Cardo', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    margin: 0 0 4px !important;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    letter-spacing: -0.01em;
    max-width: 240px;
}
.gb-col-tile-cta {
    display: inline-block;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}
.gb-col-tile:hover .gb-col-tile-cta { color: #d4a73c; }
@media (max-width: 600px) {
    .gb-col-tile-name { font-size: 22px !important; }
    .gb-col-tile-content { left: 16px; bottom: 16px; }
}

/* ===== Products grid ===== */
.gb-col-products {
    background: rgba(0,0,0,0.92);
    padding: 80px 20px;
}
/* Inherit homepage product card styling for consistency */
.gb-col-products .woocommerce ul.products,
.gb-col-products .woocommerce ul.products li.product { background: transparent !important; }

.gb-col-products .woocommerce ul.products li.product {
    padding: 0 !important;
    border: none !important;
    text-align: center;
    margin-bottom: 40px !important;
    transition: transform 0.25s ease;
}
.gb-col-products .woocommerce ul.products li.product:hover { transform: translateY(-4px); }
.gb-col-products .woocommerce ul.products li.product img {
    margin: 0 0 14px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.gb-col-products .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cardo', Georgia, serif !important;
    font-size: 17px !important;
    color: #ffffff !important;
    padding: 0 !important;
    min-height: 0 !important;
    margin: 0 0 6px !important;
    font-weight: 400;
}
.gb-col-products .woocommerce ul.products li.product .price {
    color: #4fcc25 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    font-size: 14px !important;
}
.gb-col-products .woocommerce ul.products li.product .button { display: none !important; }

/* Pagination dots */
.gb-col-products .woocommerce-pagination ul.page-numbers {
    border: none !important;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}
.gb-col-products .woocommerce-pagination ul.page-numbers li {
    border: none !important;
    background: transparent;
}
.gb-col-products .woocommerce-pagination ul.page-numbers a,
.gb-col-products .woocommerce-pagination ul.page-numbers span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #c9ccd2;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}
.gb-col-products .woocommerce-pagination ul.page-numbers a:hover { background: rgba(212,167,60,0.2); color: #d4a73c; }
.gb-col-products .woocommerce-pagination ul.page-numbers .current { background: #c93b3b !important; color: #ffffff !important; }
.gb-col-products .woocommerce-result-count,
.gb-col-products .woocommerce-ordering { display: none !important; }
