/**
 * ==================== Components ====================
 * Buttons, Cards, Badges, Social Links, Forms
 */

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-brand);
    color: var(--color-white);
    border-color: var(--color-brand);
}

.btn-primary:hover {
    background-color: var(--color-brand-dark);
    border-color: var(--color-brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-brand);
    border-color: var(--color-white);
}

.btn-white:hover {
    background-color: var(--color-light);
    border-color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-brand);
    border-color: var(--color-brand);
}

.btn-outline:hover {
    background-color: var(--color-brand);
    color: var(--color-white);
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--color-dark);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
}

.btn-block { width: 100%; }

/* ==================== Product Cards ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--color-light);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background-color: var(--color-brand);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-spec {
    font-size: 12px;
    color: var(--color-gray);
    background-color: var(--color-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.product-price {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--color-brand);
}

.product-price-currency {
    font-size: 14px;
    font-weight: 400;
}

.product-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-dark);
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.product-link:hover { color: var(--color-brand); }

.product-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-info-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-info-link:hover .product-name {
    color: var(--color-brand);
}

/* Product cards mobile */
@media (max-width: 768px) {
    .products-content .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-card .product-info { padding: 16px; }
    .product-card .product-name { font-size: 14px; }
    .product-card .product-price { font-size: 16px; }
}

@media (max-width: 480px) {
    .products-content .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .product-card .product-info { padding: 12px; }
    .product-card .product-name { font-size: 13px; }
    .product-card .product-price { font-size: 15px; }
    .product-card .product-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    .btn-sm { padding: 8px 12px; font-size: 11px; }
}

/* ==================== Advantage Cards ==================== */
.advantage-card {
    text-align: center;
    padding: 32px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.advantage-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-brand);
    border-radius: 50%;
}

.advantage-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-white);
}

.advantage-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.advantage-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ==================== Social Links ==================== */
.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background-color: var(--color-brand);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ==================== Touch Device Hacks ==================== */
@media (hover: none) {
    .nav-dropdown { display: none; }
    .product-card:hover { transform: none; }
    .product-card:hover .product-image img { transform: none; }
}

/* ==================== Case Cards (Trust Signals) ==================== */
.cases-section {
    padding: 60px 0;
    background-color: var(--color-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .cases-grid { grid-template-columns: repeat(3, 1fr); }
}

.case-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.case-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-light);
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-card-image img {
    transform: scale(1.05);
}

.case-card-content {
    padding: 20px;
}

.case-card-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-brand);
    background-color: rgba(227, 0, 15, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.case-card-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.case-card-desc {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-brand);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.case-card-link:hover {
    color: var(--color-brand-dark);
}

/* ==================== Sticky Inquiry Bar (Product Page) ==================== */
.sticky-inquiry-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-top: 2px solid var(--color-brand);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 0;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.sticky-inquiry-bar.visible {
    transform: translateY(0);
}

.sticky-inquiry-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-inquiry-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.sticky-inquiry-model {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-inquiry-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-brand);
}

@media (max-width: 480px) {
    .sticky-inquiry-model { font-size: 13px; }
    .sticky-inquiry-bar .btn { padding: 10px 16px; font-size: 13px; }
}
