/**
 * GT SCENT — main.css
 * Supplemental styles: admin bar offset, page transitions, shimmer, misc
 */

/* ============================================================
   ADMIN BAR OFFSET
============================================================ */
.admin-bar #main-nav {
    top: var(--wp-admin--admin-bar--height, 32px);
}
.admin-bar #mobile-menu {
    top: var(--wp-admin--admin-bar--height, 32px);
}

/* ============================================================
   PAGE TRANSITION
============================================================ */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
#main-content {
    animation: pageIn 0.4s ease both;
}

/* ============================================================
   SHIMMER SKELETON
============================================================ */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}
.shimmer {
    background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: var(--radius);
}

/* ============================================================
   PRICE ON REQUEST
============================================================ */
.price-on-request {
    color: var(--text2);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================================
   WOOCOMMERCE NOTICES (RTL)
============================================================ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    direction: rtl;
    text-align: right;
}

/* ============================================================
   STICKY PRODUCT PAGE VISUAL FIX
============================================================ */
@media (max-width: 768px) {
    .product-single-grid { padding-bottom: 80px; }
}

/* ============================================================
   EMPTY STATES
============================================================ */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text2);
}
.empty-state i {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p  { margin-bottom: 24px; }

/* ============================================================
   BACK TO TOP
============================================================ */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: all var(--transition);
    z-index: 400;
    box-shadow: var(--shadow);
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
#back-to-top:hover {
    background: var(--gold);
    color: #fff;
    border-color: transparent;
}

/* ============================================================
   PRODUCT QUICK VIEW MODAL
============================================================ */
#quick-view-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
#quick-view-modal.open { display: flex; }
.quick-view-inner {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.quick-view-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text2);
    border: none;
    font-size: 1rem;
}

/* ============================================================
   COOKIE CONSENT (Simple)
============================================================ */
#cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 800;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    animation: slideUp .4s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
#cookie-bar p { font-size: .88rem; color: var(--text2); margin: 0; flex: 1; min-width: 200px; }
#cookie-bar .cookie-btn { padding: 10px 20px; }

/* ============================================================
   WP CAPTION (Images in posts)
============================================================ */
.wp-caption {
    max-width: 100%;
    background: var(--surface2);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.wp-caption img { width: 100%; }
.wp-caption-text {
    font-size: .85rem;
    color: var(--text2);
    text-align: center;
    padding: 8px;
}

/* ============================================================
   ALIGNMENTS (Block editor)
============================================================ */
.aligncenter { display: block; margin: 0 auto 20px; }
.alignright  { float: left;  margin: 0 0 20px 20px; }
.alignleft   { float: right; margin: 0 20px 20px 0; }
.alignwide   { margin-left: -5%; margin-right: -5%; width: 110%; max-width: 110%; }

/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
    #main-nav, #promo-banner, #wa-float, #loader,
    #mobile-menu, #search-overlay, #cursor-glow,
    .newsletter-section, .wa-cta { display: none !important; }
    body { font-size: 12pt; color: #000; }
}
