/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: 20px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (min-width: 1280px) {
    .container {
        padding-left: 80px;
        padding-right: 80px;
    }
}

.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}


/* SECTION */
.section {
    padding-top: clamp(40px, 10vw, 60px);
    padding-bottom: clamp(40px, 10vw, 60px);
}

.section-dark {
    background: var(--color-secondary);
    color: var(--color-white);
}

.section-light {
    background: var(--color-white);
    color: var(--color-black);
}

.section-header {
    display: flex;
    margin-bottom: clamp(20px, 4vw, 50px);
}

.section-header__center {
    align-items: center;
    flex-direction: column;
}

.section-header__between {
    gap: clamp(12px, 2vw, 20px);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.section-badge {
    color: var(--color-yellow);
    font-size: clamp(10px, 1vw, 12px);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

h2.section-title {
    position: relative;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    line-height: 1.3;
    color: var(--color-secondary);
}

.section-sub{
    font-size: clamp(14px, 2vw, 18px);
}

.section-desc{
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.3;
}

.section-desc p {
    margin-bottom: clamp(6px, 1vw, 10px);
}

.title-line {
    width: fit-content;
    padding-bottom: clamp(8px, 1vw, 16px);
}

.title-line::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: clamp(3px, 0.5vw, 4px);
    background: var(--color-tertiary);
}

/* center line */
.line-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    font-size: clamp(13px, 1.2vw, 16px);
}

/* Paragraph */
.content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Headings */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    margin: 1.5rem 0 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.content h1 {
    font-size: 2rem;
}

.content h2 {
    font-size: 1.75rem;
}

.content h3 {
    font-size: 1.5rem;
}

.content h4 {
    font-size: 1.25rem;
}

/* Links */
.content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content a:hover {
    color: #1d4ed8;
}

/* Lists */
.content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.content ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.content li::marker {
    font-weight: bold;
}

/* Images */
.content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 0.75rem;
    display: block;
}

/* Blockquote */
.content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #2563eb;
    background: #f1f5f9;
    font-style: italic;
    color: #475569;
}

/* Tables */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content th,
.content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.content th {
    background: #f8fafc;
    font-weight: 600;
}

/* Code */
.content code {
    background: #f1f5f9;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.content pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
}

/* HR */
.content hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* ICON */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 60%;
    height: auto;
}

/* BUTTON */
.btn {
    width: fit-content;
    padding: clamp(10px, 1.5vw, 14px) clamp(18px, 3vw, 28px);
    font-size: clamp(12px, 1.2vw, 16px);
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.2vw, 1px);
    border: clamp(1px, 0.15vw, 2px) solid transparent;
    transition: all 0.5s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    vertical-align: middle;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline {
    position: relative;
    overflow: hidden;
    border-color: var(--color-white);
    color: var(--color-white);
    background: transparent;
    z-index: 1;
}

.btn-outline:before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: 0;
    transform: translateX(-101%);
    width: 100%;
    background: var(--color-white);
    z-index: -1;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
}

.btn-outline:hover:before {
    transform: translateX(0);
}

.active.btn-outline,
.btn-outline:hover {
    color: var(--color-primary);
}

.btn.btn-link {
    padding: 4px 0;
    border: none;
    background: transparent;
    color: var(--color-secondary);
    font-size: clamp(12px, 1.2vw, 14px);
    position: relative;
}
/* underline animation */
.btn.btn-link .text {
    position: relative;
}

.btn.btn-link .text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

/* icon transition */
.btn.btn-link .icon {
    transition: transform 0.3s ease;
}

/* hover effect */
.btn.btn-link:hover {
    color: var(--color-primary);
}

.btn.btn-link:hover .text::after {
    width: 100%;
}


.limit-line {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.limit-line.limit-2 {
    -webkit-line-clamp: 2;
}

.limit-line.limit-3 {
    -webkit-line-clamp: 3;
}

.limit-line.limit-5 {
    -webkit-line-clamp: 5;
}


/* SKELETON BASE */
.skeleton {
    pointer-events: none;
}

.skeleton .product-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #eee;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-line {
    height: 12px;
    background: #eee;
    border-radius: 6px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.skeleton-line.title {
    width: 70%;
    height: 14px;
}

.skeleton-line.price {
    width: 40%;
}

/* ANIMATION */
.skeleton::after,
.skeleton .product-img::after,
.skeleton-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.6),
            transparent
    );
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(300%);
    }
}

span.icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: clamp(18px, 1.5vw, 26px);
    height: auto;
}