/* ==========================================
   ARTSTATION-STYLE PRODUCT PAGE REDESIGN
   ========================================== */

:root {
    --as-bg-main: #0a0a0c;
    /* Heavy Glass */
    --as-bg-card: rgba(255, 255, 255, 0.03);
    --as-bg-widget: rgba(255, 255, 255, 0.05);
    --as-border: rgba(255, 255, 255, 0.12);
    --as-text: #e0e0e0;
    --as-text-muted: #b0b0b0;
    --as-primary: #31A8FF;
    /* Outfit Blue */
    --as-primary-hover: #4db4ff;
    --as-orange: #FF9A00;
    /* Outfit Orange */
    --as-red: #e50914;
    --as-green: #27ae60;
    --lic-personal: #27ae60;
    --lic-commercial: #31A8FF;
    --lic-standard: #FF9A00;
}

/* Reset / Typography */
.product-container-exact {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 120px 0 40px 0;
    /* Increased to clear fixed header */
    background: transparent;
    color: var(--as-text);
    font-family: 'Outfit', sans-serif;
}

/* ==========================================
   BREADCRUMBS & TOP TITLE
   ========================================== */
.as-top-header {
    padding: 20px 0;
}

.as-breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--as-text-muted);
    margin-bottom: 12px;
}

.as-breadcrumbs a {
    color: var(--as-text-muted);
    text-decoration: none;
}

.as-breadcrumbs a:hover {
    color: var(--as-text);
}

.as-title-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.as-product-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.as-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
}

.as-author-info a {
    color: var(--as-primary);
    text-decoration: none;
    font-weight: 500;
}

/* ==========================================
   MAIN GRID
   ========================================== */
.as-main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1100px) {
    .as-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   IMAGE SECTION
   ========================================== */
.as-image-viewer {
    width: 100%;
}

.as-main-img-box {
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.as-main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.as-thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.as-thumb {
    width: 100px;
    height: 60px;
    background: #000;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    flex-shrink: 0;
}

.as-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-thumb.active {
    border-color: var(--as-primary);
    opacity: 1;
}

/* ==========================================
   SIDEBAR & LAYOUT
   ========================================== */
.as-sidebar {
    position: -webkit-sticky;
    /* Support for Safari */
    position: sticky;
    top: 110px;
    /* Offset for the fixed header */
    height: fit-content;
    align-self: start;
    z-index: 10;
}

/* ==========================================
   SIDEBAR COMPONENTS
   ========================================== */

/* Premium Offer Card */
.as-offer-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--as-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

.as-offer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(49, 168, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.as-offer-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--as-primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 10px;
    border-bottom-right-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.as-offer-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.as-offer-percent {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--as-primary);
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.as-offer-percent span {
    font-size: 0.7rem;
    color: var(--as-text-muted);
}

.as-offer-details {
    flex: 1;
}

.as-offer-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--as-text);
    margin-bottom: 8px;
}

.as-coupon-row {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid var(--as-border);
    overflow: hidden;
}

.as-coupon-row code {
    flex: 1;
    padding: 8px 12px;
    font-family: 'Outfit', monospace;
    font-size: 0.9rem;
    color: var(--as-primary);
    background: transparent;
}

.as-copy-btn {
    background: var(--as-primary);
    color: #000;
    border: none;
    padding: 0 15px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.as-copy-btn:hover {
    background: #fff;
}

/* Main Purchase Card */
.as-purchase-card {
    background: var(--as-bg-card);
    border: 1px solid var(--as-border);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.as-purchase-card:hover {
    transform: translateY(-5px);
    border-color: #444;
    border-style: dashed;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.as-license-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.as-license-type {
    font-size: 1.1rem;
    font-weight: 700;
}

.as-lic-personal {
    color: var(--lic-personal);
}

.as-lic-commercial {
    color: var(--lic-commercial);
}

.as-lic-standard {
    color: var(--lic-standard);
}

.as-price-val {
    color: var(--as-orange);
    font-size: 1.5rem;
    font-weight: 700;
}

.as-license-desc {
    font-size: 0.8rem;
    color: var(--as-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* File List */
.as-file-list {
    margin-bottom: 20px;
}

.as-file-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--as-text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.as-file-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 8px 0;
    color: var(--as-text);
}

.as-file-ext {
    color: var(--as-text-muted);
}

/* Actions */
.as-actions {
    display: flex;
    gap: 10px;
}

.as-btn-buy {
    flex: 1;
    background: linear-gradient(90deg, var(--as-primary), #4db4ff, var(--as-primary));
    background-size: 200% auto;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 4px;
    /* Flattened from 50px */
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.5s;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.as-btn-buy:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.as-btn-buy:hover::before {
    left: 100%;
}

.as-btn-buy i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-2px);
    }
}

.as-btn-wish {
    width: 45px;
    height: 45px;
    background: var(--as-bg-widget);
    border: 1px solid var(--as-border);
    border-radius: 4px;
    color: var(--as-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* CATEGORIES BLOCK */
.as-side-block {
    background: var(--as-bg-card);
    border: 1px solid var(--as-border);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.as-side-block:hover {
    border-color: #444;
    border-style: dashed;
}

.as-side-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.as-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.as-pill {
    padding: 6px 12px;
    background: var(--as-bg-widget);
    border: 1px solid var(--as-border);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--as-text);
    text-decoration: none;
}

/* SHARE ROW */
.as-share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.as-share-btn {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}

.as-fb {
    background: #3b5998;
}

.as-pi {
    background: #bd081c;
}

.as-tw {
    background: #1da1f2;
}

.as-li {
    background: #0077b5;
}

.as-link-box {
    display: flex;
    background: var(--as-bg-widget);
    border: 1px solid var(--as-border);
    border-radius: 3px;
    overflow: hidden;
}

.as-link-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--as-text-muted);
    font-size: 0.8rem;
    outline: none;
}

.as-link-copy {
    background: var(--as-bg-widget);
    border: none;
    border-left: 1px solid var(--as-border);
    color: var(--as-text-muted);
    padding: 0 10px;
    cursor: pointer;
}

/* ==========================================
   DESCRIPTION SECTION
   ========================================== */
.as-desc-section {
    margin-top: 40px;
    max-width: 800px;
}

.as-desc-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--as-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.as-desc-content {
    line-height: 1.6;
    font-size: 1rem;
    color: #ccc;
}

/* FAQ STYLES */
.as-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.as-faq-item {
    background: var(--as-bg-card);
    border: 1px solid var(--as-border);
    padding: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.as-faq-item:hover {
    border-color: var(--as-primary);
    background: rgba(49, 168, 255, 0.05);
}

.as-faq-q {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.as-faq-q::before {
    content: 'Q.';
    color: var(--as-primary);
    font-size: 1.1rem;
}

.as-faq-a {
    font-size: 0.95rem;
    color: var(--as-text-muted);
    line-height: 1.5;
    padding-left: 28px;
}

/* Follow Button & Social Modal */
.follow-main-btn {
    flex: 1;
    background: var(--as-primary);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.follow-main-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 168, 255, 0.3);
}

.social-follow-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--as-border);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-follow-card i {
    font-size: 1.8rem;
}

.social-follow-card:hover {
    transform: translateY(-5px);
    border-color: var(--as-primary);
    background: rgba(255, 255, 255, 0.08);
}

.as-artstation:hover {
    color: #13AFF0;
    border-color: #13AFF0;
}

.as-linkedin:hover {
    color: #0077b5;
    border-color: #0077b5;
}

.as-instagram:hover {
    color: #e4405f;
    border-color: #e4405f;
}

.as-gumroad:hover {
    color: #ff9a00;
    border-color: #ff9a00;
}

.as-mail:hover {
    color: #ea4335;
    border-color: #ea4335;
}

.as-twitter:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Next/Prev Navigation Hover */
.nav-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--as-primary) !important;
    transform: translateY(-3px);
}

.similar-card:hover img {
    transform: scale(1.05);
}

.similar-card:hover div:last-child {
    color: #fff !important;
}

/* Comments & OTP Redesign */
.comment-form-container input:focus,
.comment-form-container textarea:focus {
    outline: none;
    border-color: var(--as-primary) !important;
    background: #151515 !important;
}

.comment-item {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.otp-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.otp-input:focus {
    outline: none;
    border-color: var(--as-primary) !important;
    box-shadow: 0 0 15px rgba(49, 168, 255, 0.3);
}

.otp-btn {
    transition: 0.3s;
}

.otp-btn:hover {
    filter: brightness(1.2);
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.comment-submit-btn:hover {
    background: linear-gradient(180deg, #0084FF, #005CE6) !important;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.45) !important;
    transform: translateY(-2px);
}

.comment-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3) !important;
}

.reply-btn:hover {
    color: var(--as-primary-hover);
    text-decoration: underline;
}

/* Apple-Style Form Focus States */
.comment-form-container input:focus,
.comment-form-container textarea:focus {
    outline: none;
    border-color: #007AFF !important;
    background: rgba(58, 58, 60, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.005);
}