/* PRINCESS POLLY INSPIRED THEME - ULTRA SHARP & BOLD */
/* Hủy bỏ mọi bo tròn mặc định của trình duyệt và thư viện */
/* Global Soft Radius Reset */
:root {
    --primary-color: #000000;
    --text-color: #000000;
    --background-color: #ffffff;
    --border-color: #e5e5e5;
    /* Hoặc font tương đương đậm */
    --font-body: 'Inter', sans-serif;
    --global-radius: 4px;
    /* Bo góc siêu nhẹ cho toàn bộ site */
}

/* Base Universal Reset for Global Radius */
.alert,
.card,
.popover,
.tooltip-inner,
.list-group-item:first-child,
.list-group-item:last-child,
.nav-pills .nav-link,
.pagination .page-link,
.img-thumbnail {
    border-radius: var(--global-radius) !important;
}

/* Custom Checkbox/Radio if styled manually */
input[type="checkbox"],
input[type="radio"] {
    border-radius: var(--global-radius);
    /* Note: Browsers might override radio to 50% */
}

input[type="radio"] {
    border-radius: 50% !important;
    /* Keep radio buttons round */
}

.rounded-global {
    border-radius: var(--global-radius) !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6,
.text-uppercase {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- BUTTONS (Sharp Slabs) --- */
.btn {
    border: 1px solid transparent;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    /* Standardize height */
    box-shadow: none !important;
    border-radius: var(--global-radius) !important;
    /* Remove shadows */
}

.btn-primary,
.btn-dark,
.btn-black {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.btn-primary:hover,
.btn-dark:hover {
    background-color: #333333 !important;
    transform: none !important;
    /* Princess Polly không dùng hiệu ứng nhấc nút */
}

.btn-outline,
.btn-outline-dark,
.btn-outline-primary {
    background-color: transparent !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
}

.btn-outline:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* --- FORMS & INPUTS --- */
input,
select,
textarea,
.form-control,
.form-select {
    border: 1px solid #e5e5e5;
    padding: 10px 15px;
    font-size: 14px;
    color: #000000;
    background-color: #ffffff;
    box-shadow: none !important;
    border-radius: var(--global-radius) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #000000;
    outline: none;
}

/* --- HEADER --- */
.header-nav {
    border-bottom: 1px solid #e5e5e5;
    background-color: #ffffff;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: #000000 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- PRODUCT CARDS (Grid) --- */
.product-card {
    border: none !important;
    /* Không có viền bao quanh card */
    margin-bottom: 30px;
    position: relative;
    background: transparent !important;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    /* Tỷ lệ dọc chuẩn thời trang */
    background-color: #f4f4f4;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    border-radius: var(--global-radius);
}

/* Hover đổi ảnh (nếu có ảnh 2) */
.product-image-wrapper:hover .img-hover {
    opacity: 1;
}

.product-info {
    padding-top: 12px;
    text-align: left;
}

.product-title {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
    color: #4a4a4a;
    margin-bottom: 5px;
    text-transform: none;
    /* Tên sản phẩm viết thường */
    font-weight: 400;
}

.product-price {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}

/* --- BADGES (Mới, Sale) --- */
.badge-custom {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffffff;
    color: #000000;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border: 1px solid #000000;
    /* Viền đen mỏng */
    z-index: 2;
    border-radius: var(--global-radius);
}

/* --- UTILITIES --- */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* --- COLLECTION PAGE --- */
.filter-sidebar {
    border-right: 1px solid #e5e5e5;
}

.filter-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* --- PRODUCT PAGE --- */
/* Gallery bên trái */
.product-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Thông tin bên phải */
.product-detail-title {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Size Selector */
.size-option {
    border: 1px solid #e5e5e5;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--global-radius);
}

.size-option:hover,
.size-option.selected {
    border-color: #000000;
    background-color: #000000;
    color: #ffffff;
}

/* Nút Add to Cart */
.btn-add-to-cart {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    font-size: 16px;
    padding: 16px;
    margin-top: 20px;
    font-weight: 800 !important;
    /* Rất đậm */
    border-radius: var(--global-radius) !important;
}

.btn-add-to-cart:hover {
    background-color: #333;
}

/* --- FOOTER --- */
.footer-dark {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0;
}

.footer-heading {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-link {
    color: #999999;
    font-size: 13px;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- OVERRIDES CHO CÁC THƯ VIỆN --- */
.modal-content {
    border-radius: var(--global-radius) !important;
    border: 1px solid #000000 !important;
}

.offcanvas {
    border-left: 1px solid #000000 !important;
}

.dropdown-menu {
    border: 1px solid #e5e5e5 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    border-radius: var(--global-radius) !important;
}

.toast {
    box-shadow: none !important;
    border: 1px solid #000000 !important;
    border-radius: var(--global-radius) !important;
}

/* Tom Select */
.ts-control {
    border-radius: var(--global-radius) !important;
    border: 1px solid #e5e5e5 !important;
}

/* --- REMOVE INPUT NUMBER SPINNERS --- */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* --- UTILITY: HIDE SCROLLBAR --- */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}