/* =====================================================
   Alferro Store - Custom Styles based on static design
   Bootstrap 5 compatible
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors from static */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-blue: #2563eb;
    --color-blueDark: #1e40af;
    --color-blueLight: #e0f2fe;
    --color-orangeLight: #fff7ed;
    --color-whiteLight: #fafafa;
    --color-grayLight: #9ca3af;
    --color-telegram: #0088cc;
    
    /* Gradients */
    --gradient-blueLight-luxe: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #dbeafe 100%);
    --gradient-intro: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    
    /* Bootstrap overrides */
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
}

/* Font Families */
.ff-Manrope {
    font-family: "Manrope", sans-serif;
}

.ff-Inter {
    font-family: "Inter", sans-serif;
}

.ff-GreatVibes {
    font-family: "Great Vibes", cursive;
}

/* Font Weights */
.fw-100 { font-weight: 100; }
.fw-200 { font-weight: 200; }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* Font Sizes */
.fs-1 { font-size: 0.1rem; }
.fs-2 { font-size: 0.2rem; }
.fs-3 { font-size: 0.3rem; }
.fs-6 { font-size: 0.6rem; }
.fs-10 { font-size: 1rem; }
.fs-12 { font-size: 1.2rem; }
.fs-14 { font-size: 1.4rem; }
.fs-16 { font-size: 1.6rem; }
.fs-18 { font-size: 1.8rem; }
.fs-20 { font-size: 2rem; }
.fs-24 { font-size: 2.4rem; }
.fs-32 { font-size: 3.2rem; }
.fs-36 { font-size: 3.6rem; }
.fs-48 { font-size: 4.8rem; }

/* Responsive Font Sizes */
@media (max-width: 575.98px) {
    .fs-xs-1 { font-size: 1rem; }
    .fs-xs-6 { font-size: 0.6rem; }
    .fs-xs-16 { font-size: 1.6rem; }
    .fs-xs-32 { font-size: 3.2rem; }
}

@media (min-width: 768px) {
    .fs-md-14 { font-size: 1.4rem; }
    .fs-md-24 { font-size: 2.4rem; }
}

@media (min-width: 1200px) {
    .fs-xl-8 { font-size: 6.4rem; }
}

/* Colors */
.color-white { color: var(--color-white) !important; }
.color-black { color: var(--color-black) !important; }
.color-blue { color: var(--color-blue) !important; }
.color-blueDark { color: var(--color-blueDark) !important; }
.color-grayLight { color: var(--color-grayLight) !important; }
.color-red { color: #dc2626 !important; }

.p-20 { padding: 2rem !important; }

/* Background Colors */
.bg-whiteLight { background-color: var(--color-whiteLight) !important; }
.bg-blueLight { background-color: var(--color-blueLight) !important; }
.bg-blue { background-color: var(--color-blue) !important; }
.bg-blueDark { background-color: var(--color-blueDark) !important; }
.bg-black { background-color: var(--color-black) !important; }
.bg-orangeLight { background-color: var(--color-orangeLight) !important; }
.bg-telegram { background-color: var(--color-telegram) !important; }
.bg-light { background-color: #f8f9fa !important; }

/* Gradients */
.bg-blueLight-gradient-luxe {
    background: var(--gradient-blueLight-luxe);
}

.bg-blobs {
    position: relative;
    overflow: hidden;
}

.bg-blobs::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.bg-blobs-bandeja {
    position: relative;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 35%),
                linear-gradient(145deg, #f05706 0%, #f76a0c 40%, #ff791b 100%);
}

.bg-blobs-bandeja::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('/assets/images/grain.png');
    opacity: 0.5;
    pointer-events: none;
}

.bg-blobs-bandeja > .row,
.bg-blobs-bandeja > div {
    position: relative;
    z-index: 2;
}

/* Border Radius */
.radius-1 { border-radius: 1rem !important; }
.radius-2 { border-radius: 2rem !important; }
.radius-16 { border-radius: 1.6rem !important; }
.radius-50p { border-radius: 50% !important; }

/* Container XXXL */
@media (min-width: 1400px) {
    .container-xxxl {
        max-width: 1520px;
    }
}

@media (min-width: 1800px) {
    .container-xxxl {
        max-width: 1720px;
    }
}

/* Z-Index Utilities */
.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }
.z-3 { z-index: 3 !important; }
.z-6 { z-index: 6 !important; }
.zIndex-1 { z-index: 1 !important; }
.zIndex-2 { z-index: 2 !important; }

/* Spacing Extensions */
.mt-lg-50 { margin-top: 5rem !important; }
.mt-lg-100 { margin-top: 10rem !important; }
.mt-lg-200 { margin-top: 20rem !important; }
.mb-lg-50 { margin-bottom: 5rem !important; }
.py-lg-100 { padding-top: 10rem !important; padding-bottom: 10rem !important; }
.px-lg-100 { padding-left: 10rem !important; padding-right: 10rem !important; }

/* Line Heights */
.lh-125 { line-height: 1.25 !important; }
.lh-145 { line-height: 1.45 !important; }
.lh-1 { line-height: 1 !important; }

/* List None */
.list-none {
    list-style: none;
    padding-left: 0;
}

/* Object Cover */
.object-cover {
    object-fit: cover;
}

/* Header */
.js-header {
    overflow: visible;
    z-index: 1010;
}

.header-logo {
    max-width: 24rem;
    width: auto;
    max-height: 12rem;
    height: auto;
}

.header-logo--sm {
    max-width: 10rem;
    max-height: 4rem;
}

.header-nav-toggler {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 3rem;
    height: 3rem;
    padding: 0.625rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.header-nav-toggler:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

.header-nav-toggler-bar {
    display: block;
    width: 1.75rem;
    height: 3px;
    background-color: var(--color-black);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-mobile-toolbar {
    display: grid;
    grid-template-columns: 3rem 1fr 3rem;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.header-mobile-toolbar__logo {
    justify-self: center;
    min-width: 0;
    text-align: center;
}

.header-mobile-toolbar__logo .header-logo {
    max-height: 5rem;
    max-width: 9rem;
    width: auto;
    height: auto;
}

.header-mobile-toolbar__cart {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.header-cart-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.15rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.05rem;
    border: 1.5px solid var(--color-whiteLight);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
    pointer-events: none;
}

.mobile-nav-collapse {
    margin-top: 0.5rem;
}

.mobile-nav-dropdown {
    display: flex;
    flex-direction: column;
    background-color: var(--color-whiteLight);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-black);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--color-black);
}

/* Hover Backgrounds */
.hover-bg-blueDark:hover {
    background-color: var(--color-blueDark) !important;
}

.hover-bg-orangeLight:hover {
    background-color: var(--color-orangeLight) !important;
}

/* Transitions */
.fx-transition {
    transition: all 0.3s ease;
}

/* =====================================================
   VIDEO HERO SECTION
   ===================================================== */
.video-block {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.video-block video,
.video-block img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-intro);
    z-index: 1;
}

.intro-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.intro-text h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    border-radius: 5rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bg-blueDarkHover:hover {
    background-color: var(--color-blueDark) !important;
}

/* =====================================================
   PRODUCT ITEM CARD (from static)
   ===================================================== */
.catalog-productList .product-item {
    display: block;
    position: relative;
    border-radius: 1.6rem;
    overflow: hidden;
    text-decoration: none;
    color: white;
    height: 100%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 40%), linear-gradient(180deg, #34373d, #1c1e21);
    container-type: inline-size;
}

.catalog-productList .product-item_PREVIEW-PICTURE {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.catalog-productList .product-item_PREVIEW-PICTURE::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6rem;
    height: 20rem;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
}

.catalog-productList .product-item_MAIN-IMG,
.catalog-productList .product-item_PREVIEW-PICTURE img:not(.product-itemHoverImg) {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.catalog-productList .product-itemHoverImg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.catalog-productList .product-item:hover .product-item_MAIN-IMG,
.catalog-productList .product-item:hover .product-item_PREVIEW-PICTURE img:not(.product-itemHoverImg) {
    opacity: 0;
}

.catalog-productList .product-item:hover .product-itemHoverImg {
    opacity: 1;
    transform: scale(1.05);
}

.catalog-productList .product-item_NAME {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 4.5rem;
    z-index: 4;
    font-size: clamp(1.6rem, 4cqi, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
    pointer-events: none;
}

.catalog-productList .product-item_NAME.font-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
    color: transparent;
}

.catalog-productList .product-item_INFO {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;
    z-index: 5;
    pointer-events: none;
}

.catalog-productList .product-item_PRICE {
    font-size: clamp(1.4rem, 3.5cqi, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.catalog-productList .product-item_STOCK {
    font-size: 0.8rem;
    line-height: 1;
}

.catalog-productList .product-item_STOCK span {
    padding: 0.5rem 0.8rem;
    border-radius: 0.4rem;
    background: white;
    color: black;
    font-size: inherit;
}

.bg-blueLight-gradient-luxe .catalog-productList .product-item {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 40%), linear-gradient(180deg, #34373d, #1c1e21);
}

/* =====================================================
   REVIEWS (component_comments from static)
   ===================================================== */
.component_comments .reviews-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .component_comments .reviews-carousel {
        padding: 0 4rem;
    }
}

.component_comments .reviews-track {
    display: flex;
    transition: transform 0.5s ease;
}

.component_comments .review-item {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .component_comments .review-item {
        flex: 0 0 50%;
    }
}

.component_comments .review-text {
    font-size: 1.4rem;
    line-height: 1.45;
    text-align: left;
}

.component_comments .review-author-line {
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: left;
}

.component_comments .item-previewPicture {
    --count: 1;
    --dot-color: var(--color-blue);
    --dot-gap: 10deg;
    --border-thickness: 0.2rem;
    --ring-offset: -0.1rem;
    --start-angle: -90deg;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .component_comments .item-previewPicture {
        width: 8rem;
        height: 8rem;
    }
}

.component_comments .item-previewPicture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.component_comments .item-previewPicture::after {
    content: "";
    position: absolute;
    inset: calc(var(--ring-offset) * -1);
    border-radius: 50%;
    pointer-events: none;
    background: repeating-conic-gradient(
        from var(--start-angle),
        var(--dot-color) 0 calc((360deg / var(--count)) - var(--dot-gap)),
        transparent calc((360deg / var(--count)) - var(--dot-gap)) calc(360deg / var(--count))
    );
    -webkit-mask: radial-gradient(
        farthest-side,
        transparent calc(100% - var(--border-thickness) * 2),
        #000 calc(100% - var(--border-thickness))
    );
    mask: radial-gradient(
        farthest-side,
        transparent calc(100% - var(--border-thickness) * 2),
        #000 calc(100% - var(--border-thickness))
    );
}

.component_comments .carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.component_comments .carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-black);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.component_comments .carousel-btn:hover:not(:disabled) {
    background: var(--color-black);
    color: white;
}

.component_comments .carousel-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* =====================================================
   MAP SECTION
   ===================================================== */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 1.6rem;
    overflow: hidden;
}

/* =====================================================
   CATALOG SECTIONS
   ===================================================== */
.catalog-block {
    padding: 2rem 0;
}

.catalog-section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.catalog-section-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.section-logo {
    max-height: 300px;
    width: auto;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-block {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* =====================================================
   PRODUCT CARD (list view)
   ===================================================== */
.product-card {
    display: block;
    background: white;
    border-radius: 1.6rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f5f9;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card__image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-card__image-hover {
    opacity: 1;
}

.product-card:hover .product-card__image img:first-child {
    transform: scale(1.05);
}

.product-card__body {
    padding: 1.5rem;
}

.product-card__name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-card__price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-blue);
}

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */
.product-detail {
    padding: 3rem 0;
}

.product-gallery {
    position: relative;
}

.product-gallery__main {
    position: relative;
    aspect-ratio: 1;
    border-radius: 1.6rem;
    overflow: hidden;
    background: #f8fafc;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__thumbs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.product-gallery__thumb {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
    border-color: var(--color-blue);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-info__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
}

.product-info__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.variant-btn {
    padding: 0.8rem 1.6rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.8rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-btn:hover,
.variant-btn.active {
    border-color: var(--color-blue);
    background: #eff6ff;
}

/* =====================================================
   CART STYLES
   ===================================================== */
.cart-section {
    padding: 3rem 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1.6rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-item__image {
    width: 100px;
    height: 100px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__info {
    flex-grow: 1;
}

.cart-item__name {
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.cart-item__variant {
    color: var(--color-grayLight);
    font-size: 1.2rem;
}

.cart-item__price {
    font-weight: 700;
    font-size: 1.6rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.6rem;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f1f5f9;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 0.5rem;
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 991.98px) {
    .video-block {
        min-height: 500px;
    }
    
    .catalog-productList .product-item_PREVIEW-PICTURE::after {
        height: 14rem;
        bottom: 0;
    }

    .catalog-productList .product-item_NAME {
        bottom: 4rem;
    }
    
    .header-logo {
        max-height: 8rem;
        max-width: 10rem;
        width: auto !important;
    }
}

@media (max-width: 767.98px) {
    .video-block {
        min-height: 400px;
    }
    
    .intro-text h1 {
        font-size: 2.2rem;
    }
    
    .button {
        padding: 1rem 1.8rem;
        font-size: 1.4rem;
    }
    
    .catalog-productList .product-item_INFO {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .catalog-productList .product-item_STOCK {
        font-size: 1rem;
    }

    .catalog-productList .product-item_STOCK span {
        padding: 0.4rem 0.6rem;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item__price {
        width: 100%;
        text-align: right;
    }
}

/* Lazy loading placeholder */
.js-lazyload {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.js-lazyload.loaded {
    opacity: 1;
}

/* Animation utilities */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(20px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}
