/*
Theme Name: Go Fresh
Theme URI: https://gofresh.vn
Author: Go Fresh Team
Author URI: https://gofresh.vn
Description: Theme giao diện Trái cây nhập khẩu Go Fresh chuẩn thiết kế và tối ưu WooCommerce
Version: 1.0.0
Text Domain: gofresh
*/

:root {
    --font-be-vietnam-pro: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-cormorant-garamond: 'Cormorant Garamond', Georgia, "Times New Roman", serif;
}

body, html {
    font-family: 'Be Vietnam Pro', var(--font-be-vietnam-pro), system-ui, sans-serif;
}

.home-display,
h1.home-display,
h2.home-display,
h3.home-display,
.font-display {
    font-family: 'Cormorant Garamond', var(--font-cormorant-garamond), Georgia, serif !important;
}

/* Page content typography & styling */
.prose {
    color: #3b5247;
    font-size: 1.025rem;
    line-height: 1.8;
}
.prose h2 {
    color: #173a2d;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}
.prose h3 {
    color: #173a2d;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
}
.prose p {
    margin-bottom: 1.15rem;
}
.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.prose ul {
    list-style-type: disc;
}
.prose ol {
    list-style-type: decimal;
}
.prose li {
    margin-bottom: 0.5rem;
}
.prose strong {
    color: #173a2d;
    font-weight: 700;
}
.prose a {
    color: #d9572f;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose a:hover {
    color: #b8431f;
}
.prose blockquote {
    border-left: 4px solid #f5cf70;
    padding-left: 1rem;
    font-style: italic;
    color: #557468;
    margin: 1.5rem 0;
}

/* Category Mega Dropdown & Nav Preview Hover */
.group\/catmenu .header-mega-in,
.group\/navitem .header-nav-preview {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.group\/catmenu:hover .header-mega-in,
.group\/navitem:hover .header-nav-preview {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* ====================================================
   WooCommerce Login / Register / Checkout Overrides
   ==================================================== */
.woocommerce form.login, 
.woocommerce form.register, 
.woocommerce form.checkout {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    display: block !important;
}

.woocommerce-Input.input-text,
.woocommerce input[type="text"],
.woocommerce input[type="password"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"] {
    box-sizing: border-box !important;
}

/* Ensure inputs with left icons have proper clearance */
.kingfruit-login-wrapper input[type="text"],
.kingfruit-login-wrapper input[type="password"],
.kingfruit-login-wrapper input[type="tel"],
.kingfruit-login-wrapper input[type="email"],
.woocommerce form.login input[type="text"],
.woocommerce form.login input[type="password"],
.woocommerce form.login input[type="tel"],
.woocommerce form.login input[type="email"] {
    padding-left: 2.75rem !important;
    padding-right: 1rem !important;
}

.woocommerce form.checkout .relative input.input-with-icon,
.woocommerce form.checkout .relative input[type="text"],
.woocommerce form.checkout .relative input[type="tel"],
.woocommerce form.checkout .relative input[type="email"],
.woocommerce form.checkout .relative textarea {
    padding-left: 2.75rem !important;
    padding-right: 1rem !important;
}

/* Notices styling */
.woocommerce-error, 
.woocommerce-info, 
.woocommerce-message {
    padding: 0.875rem 1.25rem !important;
    border-radius: 1rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.875rem !important;
    border: none !important;
}

.woocommerce-error {
    background-color: #fdf1ee !important;
    color: #8d3028 !important;
}

.woocommerce-info,
.woocommerce-message {
    background-color: #eef1dc !important;
    color: #173a2d !important;
}

/* ====================================================
   Pagination Styling (Go Fresh Theme)
   ==================================================== */
.navigation.pagination {
    display: flex;
    justify-content: center;
    width: 100%;
}

.navigation.pagination .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navigation.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    min-width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c5948;
    background-color: #ffffff;
    border: 1px solid rgba(23, 58, 45, 0.12);
    box-shadow: 0 2px 6px rgba(23, 58, 45, 0.04);
}

.navigation.pagination a.page-numbers:hover {
    color: #ffffff;
    background-color: #d9572f;
    border-color: #d9572f;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(217, 87, 47, 0.25);
}

.navigation.pagination .page-numbers.current {
    color: #fffaf1;
    background-color: #173a2d;
    border-color: #173a2d;
    box-shadow: 0 4px 12px rgba(23, 58, 45, 0.2);
    cursor: default;
}

.navigation.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #789086;
    padding: 0 0.25rem;
    min-width: 1.5rem;
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    padding: 0 1.25rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


