/* ═══════════════════════════════════════
   GLOBAL OVERRIDES — Loaded AFTER main.css
   ═══════════════════════════════════════ */

/* ── Scrollbar Hide (Horizontal Tracks) ── */
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ── Advanced Search Modal — Force Geometry ──
   Crush any cached pill/capsule shapes from
   legacy CSS or browser defaults. All filter
   tags, buttons, selects, and inputs must use
   exactly 4px (rounded-sm) border-radius. */

/* Filter tag buttons — force 4px radius, kill pills */
[x-cloak] span[class*="rounded"],
[x-cloak] button[class*="rounded"] {
    border-radius: 4px !important;
}

/* Select boxes — force 4px radius */
[x-cloak] select {
    border-radius: 4px !important;
    border-color: rgba(27, 41, 68, 0.15) !important;
}

/* Number inputs — force 4px radius */
[x-cloak] input[type="number"] {
    border-radius: 4px !important;
    border-color: rgba(27, 41, 68, 0.15) !important;
}

/* Close button — force round (intentional circle) */
[x-cloak] button[aria-label] svg {
    border-radius: 0 !important;
}

/* Modal container — force white bg + 6px radius */
[x-cloak] form[class*="bg-white"] {
    background: #FFFFFF !important;
    border-radius: 6px !important;
}

/* Action bar submit — force 4px radius */
[x-cloak] button[type="submit"] {
    border-radius: 4px !important;
}

/* Action bar clear — force 4px radius */
[x-cloak] button[type="button"][class*="border"] {
    border-radius: 4px !important;
}

/* ── Spinner Removal ── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    height: 0 !important;
    width: 0 !important;
    display: none !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* ── WooCommerce Messages — Intercepted by Alpine.js Toast System ──
   Native notices are hidden globally. The global toast component in
   header.php renders all notifications as luxury bottom-center toasts.
   See global.js → _initNotices() and atToast(). */
.woocommerce-notices-wrapper > .woocommerce-message,
.woocommerce-notices-wrapper > .woocommerce-error,
.woocommerce-notices-wrapper > .woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.wc-block-components-notice-banner,
[class*="woocommerce-notice"],
[class*="wc-notice"] {
    display: none !important;
}

/* Preserve cart-empty state (important UX content, not a transient notice) */
.cart-empty.woocommerce-info {
    display: block !important;
}

/* ── Cart Empty State ── */
.wc-empty-cart-message {
    text-align: center !important;
    padding: 60px 20px !important;
}

.cart-empty.woocommerce-info {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 6px !important;
    padding: 40px 20px !important;
    color: #4A5568 !important;
    font-size: 15px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 20px rgba(27, 41, 68, 0.04) !important;
}

.return-to-shop {
    margin-top: 24px !important;
}

.return-to-shop .button,
.wc-backward {
    background: #1B2944 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 14px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background-color 0.3s ease-in-out !important;
    cursor: pointer !important;
}

.return-to-shop .button:hover,
.wc-backward:hover {
    background: #FF4F24 !important;
    color: #FFFFFF !important;
}

/* ═══════════════════════════════════════
   BLOG PAGINATION — Luxury Style
   ═══════════════════════════════════════ */
.at-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: rtl;
}

.at-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.at-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #FFFFFF;
    color: #1B2944;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(27, 41, 68, 0.04);
}

.at-pagination .page-numbers:hover {
    background: #1B2944;
    color: #FFFFFF;
    border-color: #1B2944;
}

.at-pagination .page-numbers.current {
    background: #1B2944;
    color: #FFFFFF;
    border-color: #1B2944;
    font-weight: 700;
}

.at-pagination .page-numbers.prev,
.at-pagination .page-numbers.next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
}

.at-pagination .page-numbers.prev:hover,
.at-pagination .page-numbers.next:hover {
    background: #FF4F24;
    border-color: #FF4F24;
}

.at-pagination .page-numbers svg {
    width: 16px;
    height: 16px;
}

.at-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: #4A5568;
    cursor: default;
}

.at-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #4A5568;
}

/* ── Line Clamp Utilities (Cross-Browser) ── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════
   SINGLE ARTICLE — Content Typography
   ═══════════════════════════════════════ */

/* Article Content Container */
.at-article__content {
    color: #1B2944;
    font-size: 1.0625rem;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

/* Headings */
.at-article__content h2 {
    color: #1B2944;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E5E7EB;
}

.at-article__content h3 {
    color: #1B2944;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.at-article__content h4 {
    color: #1B2944;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
    margin-top: 1.75rem;
    margin-bottom: 0.625rem;
}

/* Paragraphs */
.at-article__content p {
    margin-bottom: 1.5rem;
    color: #1B2944;
}

/* Links */
.at-article__content a {
    color: #FF4F24;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.at-article__content a:hover {
    color: #1B2944;
}

/* Lists */
.at-article__content ul,
.at-article__content ol {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
    padding-left: 0;
}

.at-article__content ul {
    list-style-type: disc;
}

.at-article__content ol {
    list-style-type: decimal;
}

.at-article__content li {
    margin-bottom: 0.5rem;
    color: #1B2944;
    line-height: 1.75;
}

.at-article__content li::marker {
    color: #FF4F24;
}

/* Blockquotes */
.at-article__content blockquote {
    border-right: 4px solid #FF4F24;
    border-left: none;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(27, 41, 68, 0.04);
}

.at-article__content blockquote p {
    color: #1B2944;
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 0;
}

.at-article__content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #4A5568;
    font-style: normal;
}

/* Code */
.at-article__content code {
    background: #F5F3EE;
    color: #1B2944;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.at-article__content pre {
    background: #1B2944;
    color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(27, 41, 68, 0.04);
}

.at-article__content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Images */
.at-article__content img {
    border-radius: 6px;
    margin: 2rem auto;
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(27, 41, 68, 0.04);
}

.at-article__content figure {
    margin: 2.5rem 0;
}

.at-article__content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #4A5568;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Tables */
.at-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 41, 68, 0.04);
}

.at-article__content thead {
    background: #1B2944;
}

.at-article__content th {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    text-align: right;
}

.at-article__content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E5E7EB;
    font-size: 0.9375rem;
    color: #1B2944;
}

.at-article__content tbody tr:last-child td {
    border-bottom: none;
}

.at-article__content tbody tr:hover {
    background: #FFFFFF;
}

/* Horizontal Rule */
.at-article__content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to left, transparent, #E5E7EB, transparent);
    margin: 3rem 0;
}

/* Strong/Bold */
.at-article__content strong {
    color: #1B2944;
    font-weight: 700;
}

/* Emphasis/Italic */
.at-article__content em {
    color: #1B2944;
}

/* Page Links */
.at-article__content .page-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4A5568;
}

.at-article__content .page-links .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1B2944;
    text-decoration: none;
    transition: all 0.3s ease;
}

.at-article__content .page-links .page-number:hover,
.at-article__content .page-links .page-number.current {
    background: #1B2944;
    color: #FFFFFF;
    border-color: #1B2944;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .at-article__content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .at-article__content h2 {
        font-size: 1.25rem;
    }

    .at-article__content h3 {
        font-size: 1.125rem;
    }

    .at-article__content blockquote {
        padding: 1rem 1.25rem;
    }

    .at-article__content pre {
        padding: 1rem;
        border-radius: 4px;
    }

    .at-article__content table {
        font-size: 0.875rem;
    }

    .at-article__content th,
    .at-article__content td {
        padding: 0.5rem 0.75rem;
    }
}

/* ═══════════════════════════════════════
   COMMENTS SECTION — Luxury Styling
   ═══════════════════════════════════════ */

/* Comment List */
.at-comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.at-comments .comment-list li {
    margin-bottom: 1.5rem;
}

/* Comment Reply Link */
.at-comments .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF4F24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.at-comments .comment-reply-link:hover {
    color: #1B2944;
}

/* Comment Form */
.at-comments .comment-form {
    margin-top: 2rem;
}

.at-comments .comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1B2944;
    margin-bottom: 0.5rem;
}

.at-comments .comment-form input[type="text"],
.at-comments .comment-form input[type="email"],
.at-comments .comment-form input[type="url"],
.at-comments .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #1B2944;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.at-comments .comment-form input[type="text"]:focus,
.at-comments .comment-form input[type="email"]:focus,
.at-comments .comment-form input[type="url"]:focus,
.at-comments .comment-form textarea:focus {
    outline: none;
    border-color: #FF4F24;
    box-shadow: 0 0 0 2px rgba(186, 151, 86, 0.15);
}

.at-comments .comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.at-comments .comment-form .form-submit {
    margin-top: 1.5rem;
}

.at-comments .comment-form .submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1B2944;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.at-comments .comment-form .submit:hover {
    background: #FF4F24;
}

/* Comment Navigation */
.at-comments .comment-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.at-comments .comment-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1B2944;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.at-comments .comment-navigation a:hover {
    background: #1B2944;
    color: #FFFFFF;
    border-color: #1B2944;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .at-comments .comment-form input[type="text"],
    .at-comments .comment-form input[type="email"],
    .at-comments .comment-form input[type="url"],
    .at-comments .comment-form textarea {
        font-size: 1rem;
    }
}
