/* Main Wrapper */
.afc-section-wrapper {
    width: 100%;
    background-color: #f3f3f3;
    padding: 60px 0;
    font-family: 'lato', serif;
    overflow: hidden;

}

/* Header */
.afc-header-container {
    padding: 0 4%; 
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

/* Typography */
.afc-subtitle {
    display: block;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    font-weight: 400;
	letter-spacing: 1.6px;
}

.afc-main-title {
    font-family: 'Italiana', serif;
    font-size: 53.33px;
    font-weight: 400;
    color: #111;
    margin: 0;
    line-height: 1;
}

/* Nav Buttons */
.afc-nav-wrapper {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 20px;
    gap: 25px;
    background: transparent;
    position: relative; 
    z-index: 10; 
}

.afc-button-prev, .afc-button-next {
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afc-button-prev:hover, .afc-button-next:hover {
    color: #000;
    transform: scale(1.1);
}

/* Swiper */
.afc-swiper {
    width: 100%;
    padding-left: 4%; 
    padding-right: 0 !important; 
}

/* LINK STYLING (New) */
.afc-product-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
}

.afc-slide {
    height: auto;
}

/* Inner Card */
.afc-card-inner {
    background: transparent;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

/* Hover Effect for Link */
.afc-product-link:hover .afc-card-inner {
    background: #fff; /* Optional: Highlights card on hover */
}

.afc-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.afc-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.afc-product-name {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    font-weight: 600;
    text-align: center;
    margin: 0;
}


* Ensure the image wrapper is the reference for the overlay */
.afc-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative; /* Required for absolute overlay */
    overflow: hidden;
    background-color: #e5e5e5; /* Optional: light grey background for images */
    aspect-ratio: 1 / 1; /* Makes the image area square like the example */
}

.afc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Change to cover to fill the square area */
    transition: transform 0.5s ease;
}

/* The Dark Overlay */
.afc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Dark tint */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* The Button Styling */
.afc-view-btn {
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 12px 35px;
    border: 1px solid #fff;
    border-radius: 12px; /* Rounded corners like the image */
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease;
}

/* HOVER STATES */
.afc-product-link:hover .afc-overlay {
    opacity: 1; /* Show overlay on hover */
}

.afc-product-link:hover .afc-image-wrapper img {
    transform: scale(1.05); /* Slight zoom effect */
}

.afc-view-btn:hover {
    background: #fff;
    color: #000;
}

/* Adjusting the title margin */
.afc-product-name {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}



@media (max-width: 768px) {
.afc-main-title{font-size: 32px}
.afc-subtitle {font-size: 12px;}
.afc-section-wrapper {padding: 60px 5%;}
}