/*
Theme Name: N3tech Theme
Theme URI: https://n3tech.vn
Author: N3Tech Team
Author URI: https://n3tech.vn
Description: Theme khởi đầu linh hoạt, tối ưu tốc độ và chuẩn SEO dành riêng cho các dự án của N3Tech. Hỗ trợ cấu trúc module hóa, dễ tái sử dụng và mở rộng.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: n3tech
Tags: custom-background, custom-logo, custom-menu, featured-images, full-site-editing, translation-ready, accessibility-ready
*/

/* Core styles are located in assets/css/main.css */

/* ==========================================================================
   AROVA PROMOTIONAL GIFT SECTION (QUA TANG) - REDESIGNED TO BRAND MOCKUP
   ========================================================================== */
.site-content-fullwidth {
    background: #f8fafc !important;
    padding: 36px 0 60px !important;
}

.agift {
    max-width: 1410px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.agift-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

/* 1. Card Container: Crisp White, Rounded, Soft Shadow */
.agift-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(15, 34, 61, 0.04) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    aspect-ratio: auto !important;
    min-height: 410px !important;
    padding: 16px 0 16px 0 !important;
    position: relative !important;
    transition: all 0.25s ease !important;
    grid-column: span 4 !important;
}

/* Row 2: 4 cards (items 4, 5, 6, 7) */
.agift-card:nth-child(4),
.agift-card:nth-child(5),
.agift-card:nth-child(6),
.agift-card:nth-child(7) {
    grid-column: span 3 !important;
    padding: 14px 0 14px 0 !important;
    overflow: hidden !important;
}

.agift-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(15, 34, 61, 0.09) !important;
    border-color: #cbd5e1 !important;
}

.agift-card.full {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f7f8fa !important;
}

.agift-card.full img {
    border-radius: 12px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.agift-card:nth-child(5).full img,
.agift-card:nth-child(6).full img {
    object-fit: contain !important;
}

/* 2. Signature Navy Title Badge with Slanted Cut & Red Accent Bar */
.agift-t {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    line-height: 1.2 !important;
    padding: 7px 22px 7px 14px !important;
    margin: -16px 0 10px 0 !important;
    align-self: flex-start !important;
    background: transparent !important;
    z-index: 2 !important;
}

.agift-card:nth-child(4) .agift-t,
.agift-card:nth-child(5) .agift-t,
.agift-card:nth-child(6) .agift-t,
.agift-card:nth-child(7) .agift-t {
    font-size: 12px !important;
    padding: 6px 18px 6px 10px !important;
    margin: -14px 0 10px 0 !important;
}

/* Slanted Navy ribbon background */
.agift-t::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: #0d2240 !important; /* Arova Deep Navy */
    border-top-left-radius: 12px !important;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 0 100%) !important;
    z-index: -1 !important;
}

/* Red accent bar under ribbon */
.agift-t::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -4px !important;
    width: 34px !important;
    height: 3px !important;
    background: #c3252b !important; /* Arova Signature Red */
    border-radius: 2px !important;
    z-index: 1 !important;
}

/* 3. Product Image Container - Full frame edge-to-edge */
.agift-img {
    flex: 1 1 auto !important;
    min-height: 270px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: transparent !important;
}

.agift-card:nth-child(4) .agift-img,
.agift-card:nth-child(7) .agift-img {
    min-height: 220px !important;
}

.agift-img img {
    width: 100% !important;
    height: 100% !important;
    max-height: 280px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease !important;
}

.agift-card:nth-child(4) .agift-img img,
.agift-card:nth-child(7) .agift-img img {
    max-height: 230px !important;
}

.agift-card:hover .agift-img img {
    transform: scale(1.04) !important;
}

/* 4. Bottom Features/Icons Row */
.agift-f {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 12px 18px 0 18px !important;
    border-top: 1px solid #f1f5f9 !important;
    list-style: none !important;
    width: 100% !important;
}

.agift-card:nth-child(4) .agift-f,
.agift-card:nth-child(5) .agift-f,
.agift-card:nth-child(6) .agift-f,
.agift-card:nth-child(7) .agift-f {
    padding: 10px 10px 0 10px !important;
}

.agift-f li {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #1e293b !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    overflow-wrap: break-word !important;
    min-width: 0 !important;
}

.agift-f svg {
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    padding: 2.5px !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 50% !important;
    color: #0d2240 !important;
    background: #ffffff !important;
}

/* Card with 3 features: 3 columns */
.agift-card:has(.agift-f li:nth-child(3):last-child) .agift-f,
.agift-card:nth-child(7) .agift-f,
.agift-card:nth-child(8) .agift-f,
.agift-card:nth-child(9) .agift-f,
.agift-card:nth-child(10) .agift-f {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

@media (max-width: 1100px) {
    .agift-f li {
        font-size: 9px !important;
        gap: 3px !important;
    }
    .agift-f svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 991px) {
    .agift-card,
    .agift-card:nth-child(4),
    .agift-card:nth-child(5),
    .agift-card:nth-child(6),
    .agift-card:nth-child(7) {
        grid-column: span 6 !important;
    }
}

@media (max-width: 575px) {
    .agift-grid {
        gap: 14px !important;
    }
    .agift-card,
    .agift-card:nth-child(4),
    .agift-card:nth-child(5),
    .agift-card:nth-child(6),
    .agift-card:nth-child(7) {
        grid-column: span 12 !important;
        padding: 14px 0 !important;
    }
    .agift-t {
        margin: -14px 0 10px 0 !important;
        font-size: 12.5px !important;
    }
    .agift-f {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 10px 14px 0 14px !important;
    }
}