/* WooCommerce Styles for Ascentides Recreation */

/* ==========================================================================
   GLOBAL: No Black Backgrounds on Any Image or Image Container
   Prevents transparent PNGs/WebPs from showing a dark background.
   ========================================================================== */

/* All img tags — never show black bg through transparency */
img {
    background-color: transparent !important;
}

/* WooCommerce Product Gallery (single product page) */
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery figure,
.woocommerce-product-gallery img,
.flex-viewport,
.flex-control-thumbs,
.flex-control-thumbs li,
.flex-control-thumbs img {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Product thumbnails on the single product page */
.woocommerce div.product div.images,
.woocommerce div.product div.images img,
.woocommerce div.product div.images .wp-post-image,
.woocommerce div.product .woocommerce-product-gallery img {
    background-color: #ffffff !important;
}

/* Archive / shop product cards — the image wrapper */
.amino-product-image,
.amino-product-image a,
.amino-product-image img,
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img,
.attachment-woocommerce_thumbnail,
.attachment-shop_catalog,
.woocommerce-loop-product__link img {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* WooCommerce zoom overlay  */
.zoomImg {
    background-color: #ffffff !important;
}

/* Featured / hero images sitewide */
.wp-post-image,
.attachment-full,
.wp-block-image img,
figure.wp-block-image,
.post-thumbnail img,
.entry-thumbnail img {
    background-color: #ffffff !important;
}

/* 3D model-viewer hero (transparent canvas shows sky gradient, not black) */
model-viewer {
    background-color: transparent !important;
    --poster-color: transparent !important;
}

/* Hide default WooCommerce ordering and result count (replaced with custom UI) */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* Hide ALL WooCommerce notice banners on account pages — design uses custom UI */
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper {
    display: none !important;
}

/* Remove underlines from all button-styled links on account pages */
.woocommerce-account a,
.woocommerce-account button,
.woocommerce-account a[class],
[data-testid="account-page"] a,
[data-testid="overview-page-wrapper"] a {
    text-decoration: none !important;
}

/* Fix sub-pixel rendering gap on the left of the account hero section.
   Browser sub-pixel math leaves a ~0.66px white gap between the article
   container and the dark gradient div. Negative margins close it. */
[data-testid="account-page"]>div:first-child {
    margin-left: -1px;
    margin-right: -1px;
    width: calc(100% + 2px);
}

/* Shop Page Search Bar - Exact Amino Club Match */
input[placeholder="Search products..."],
.content-container input[type="text"],
.content-container input[type="search"] {
    width: 100% !important;
    height: 44px !important;
    padding-left: 48px !important;
    padding-right: 40px !important;
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 9999px !important;
    font-size: 16px !important;
    color: #111827 !important;
    outline: none !important;
    transition: all 0.15s ease-in-out !important;
}

input[placeholder="Search products..."]::placeholder {
    color: #9ca3af !important;
}

input[placeholder="Search products..."]:focus,
.content-container input[type="text"]:focus,
.content-container input[type="search"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) !important;
    border-color: #d1d5db !important;
}

/* Fix rounded-full classes for shop elements */
.rounded-full {
    border-radius: 9999px;
}

/* Content Container - Aligned with navbar (1400px max-width, 24px padding) */
.content-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Brand Black Color */
.text-brand-black {
    color: #0a192f;
}

.bg-brand-black {
    background-color: #0a192f;
}

/* No Scrollbar Utility - Hide scrollbars but allow scrolling */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 1;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* Object Position for Product Images */
.object-\[80\%_center\] {
    object-position: 80% center;
}

/* Utility Classes Replication */
.bg-neutral-100 {
    background-color: #f5f5f5;
}

.rounded-\[20px\] {
    border-radius: 20px;
}

.rounded-\[24px\] {
    border-radius: 24px;
}

.rounded-b-\[20px\] {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.rounded-b-\[24px\] {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.shadow-elevation-card-rest {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

.aspect-\[9\/16\] {
    aspect-ratio: 9 / 16;
}

/* Grid Layout */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem 0.75rem !important;
    /* gap-y-8 gap-x-3 */
}

@media (min-width: 768px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem 1rem !important;
        /* gap-y-8 gap-x-4 */
    }
}

@media (min-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 2rem 1.5rem !important;
        /* gap-y-8 gap-x-6 */
    }
}

/* Product Card Styling */
.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 !important;
    width: 100% !important;
}

.amino-product-card {
    background-color: #f5f5f5;
    /* bg-neutral-100 */
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

@media (min-width: 1024px) {
    .amino-product-card {
        border-radius: 24px;
    }
}

.amino-product-card:hover {
    transform: scale(1.02);
}

.amino-product-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.amino-product-image img {
    object-fit: cover !important;
    object-position: 80% center !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.amino-product-content {
    padding: 0.75rem;
    /* p-3 */
    padding-top: 0.75rem;
    /* pt-3 */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #f9f9f9;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

@media (min-width: 1024px) {
    .amino-product-content {
        padding: 1rem;
        /* p-4 */
        padding-top: 1rem;
        /* pt-4 */
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
}

.amino-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.amino-product-title {
    font-weight: 600;
    font-size: 1rem;
    /* text-base */
    line-height: 1.25;
    color: #0a192f;
    /* text-brand-black */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .amino-product-title {
        font-size: 1.125rem;
        /* text-lg */
    }
}

.amino-product-price-wrapper {
    flex-shrink: 0;
    text-align: left;
}

.amino-price-label {
    color: #6b7280;
    /* text-gray-500 */
    font-size: 10px;
    display: block;
}

@media (min-width: 1024px) {
    .amino-price-label {
        font-size: 0.75rem;
        /* text-xs */
    }
}

.amino-price-amount {
    font-weight: 600;
    font-size: 1.125rem;
    /* text-lg */
    color: #0a192f;
    line-height: 1.25;
}

@media (min-width: 1024px) {
    .amino-price-amount {
        font-size: 1.25rem;
        /* text-xl */
    }
}

.amino-product-excerpt {
    color: #6b7280;
    /* text-gray-500 */
    font-size: 0.75rem;
    /* text-xs */
    margin-bottom: 0.75rem;
    /* mb-3 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .amino-product-excerpt {
        font-size: 0.875rem;
        /* text-sm */
        margin-bottom: 1rem;
        /* mb-4 */
    }
}

.amino-view-button {
    width: 100%;
    height: 2.25rem;
    /* h-9 */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 9999px;
    /* rounded-full */
    background-color: #0a192f;
    /* bg-brand-black */
    color: #ffffff;
    font-weight: 500;
    font-size: 0.75rem;
    /* text-xs */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    text-decoration: none !important;
}

.amino-view-button:hover {
    background-color: #1f2937;
    /* hover:bg-gray-800 */
    color: #ffffff;
}

@media (min-width: 1024px) {
    .amino-view-button {
        height: 2.5rem;
        /* h-10 */
        font-size: 0.875rem;
        /* text-sm */
    }
}

/* ─────────────────────────────────────────────
   Affiliate / Partner Program Page
   ───────────────────────────────────────────── */
[data-testid="affiliate-signup-wrapper"] {
    max-width: 720px;
}

/* Header */
[data-testid="affiliate-signup-wrapper"] h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: .5rem;
}

[data-testid="affiliate-signup-wrapper"]>.mb-8>p {
    color: #4b5563;
}

/* ── Benefit cards box ── */
.aff-benefits-box {
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.aff-benefits-box h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.5rem;
}

.aff-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .aff-benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* override: use our grid class instead of bare Tailwind */
.aff-benefits-box>.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .aff-benefits-box>.grid {
        grid-template-columns: 1fr;
    }
}

/* Benefit card rows */
.aff-benefits-box .flex {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.aff-benefits-box h3 {
    font-weight: 600;
    color: #000;
    font-size: 0.9375rem;
    margin-bottom: .25rem;
}

.aff-benefits-box p {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
}

/* Icon pill */
.aff-benefits-box .w-10 {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aff-benefits-box .bg-purple-100 {
    background-color: #ede9fe;
}

.aff-benefits-box .bg-blue-100 {
    background-color: #dbeafe;
}

.aff-benefits-box .bg-green-100 {
    background-color: #dcfce7;
}

.aff-benefits-box .bg-orange-100 {
    background-color: #ffedd5;
}

.aff-benefits-box .text-purple-600 {
    color: #7c3aed;
}

.aff-benefits-box .text-blue-600 {
    color: #2563eb;
}

.aff-benefits-box .text-green-600 {
    color: #16a34a;
}

.aff-benefits-box .text-orange-600 {
    color: #ea580c;
}

.aff-benefits-box svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ── Signup form card ── */
[data-testid="affiliate-signup-wrapper"] .bg-white {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    overflow: hidden;
}

[data-testid="affiliate-signup-wrapper"] .bg-white>.p-6:first-child {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

[data-testid="affiliate-signup-wrapper"] .bg-white>.p-6:first-child h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 .25rem;
}

[data-testid="affiliate-signup-wrapper"] .bg-white>.p-6:first-child p {
    font-size: .875rem;
    color: #6b7280;
    margin: 0;
}

[data-testid="affiliate-signup-wrapper"] form {
    padding: 1.5rem;
}

[data-testid="affiliate-signup-wrapper"] label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: .5rem;
}

[data-testid="affiliate-signup-wrapper"] input[type="text"] {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid #d1d5db;
    border-radius: .75rem;
    font-family: monospace;
    font-size: 1.125rem;
    text-transform: uppercase;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

[data-testid="affiliate-signup-wrapper"] input[type="text"]:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .12);
}

[data-testid="affiliate-signup-wrapper"] .aff-hint {
    margin-top: .5rem;
    font-size: .75rem;
    color: #6b7280;
}

/* referral link preview box */
[data-testid="affiliate-signup-wrapper"] .bg-gray-50 {
    background: #f9fafb;
    border-radius: .75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

[data-testid="affiliate-signup-wrapper"] .bg-gray-50 p:first-child {
    font-size: .875rem;
    color: #4b5563;
    margin: 0 0 .25rem;
}

[data-testid="affiliate-signup-wrapper"] .bg-gray-50 p:last-child {
    font-size: .875rem;
    font-family: monospace;
    color: #1f2937;
    word-break: break-all;
    margin: 0;
}

/* submit button */
[data-testid="affiliate-signup-wrapper"] button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    background: #000;
    color: #fff !important;
    font-weight: 500;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none !important;
}

[data-testid="affiliate-signup-wrapper"] button[type="submit"]:hover {
    background: #1a1a1a;
}