/* ==========================================================================
   GOABLER - TAILWIND CSS COMPANION STYLES
   Keyframes, Transitions & State Utilities
   ========================================================================== */
   
   /* ==========================================================================
   RESET BODY & WORDPRESS ADMIN BAR MARGINS
   ========================================================================== */
html, 
body {
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
}

/* Remove WordPress Admin Bar spacing bump if active */
html {
  margin-top: 0 !important;
}

#wpadminbar {
  top: 0 !important;
}

/* Header Scroll Glassmorphism State */
header.scrolled {
  background-color: rgba(12, 13, 14, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Slide-out Drawer Open State */
.drawer-backdrop.open {
  opacity: 1 !important;
  visibility: visible !important;
}

.drawer-backdrop.open #cartDrawer {
  transform: translateX(0) !important;
}

/* Modal Open State */
.modal-backdrop.open {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-backdrop.open .modal-card {
  transform: scale(1) !important;
}

/* Search Modal Open State */
.search-modal.open {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Toast Notifications Animation */
.toast {
  background: #181A1E;
  color: #FFFFFF;
  border-left: 4px solid #C67C43;
  padding: 12px 18px;
  border-radius: 4px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast i {
  color: #C67C43;
  font-size: 16px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* ==========================================================
   GOABLER INQUIRY CART — SCREENSHOT DESIGN
========================================================== */

/* Dark background overlay */
#gbInquiryOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#gbInquiryOverlay.gb-active {
    opacity: 1;
    visibility: visible;
}

/* Right-side white drawer */
#gbInquiryDrawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: 400px;
    max-width: 100%;

    height: 100vh;
    height: 100dvh;

    background: #ffffff;
    color: #111111;

    z-index: 99999;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    visibility: hidden;

    transition: transform 0.3s ease, visibility 0.3s ease;

    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.08);

    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
}

#gbInquiryDrawer.gb-active {
    transform: translateX(0);
    visibility: visible;
}

/* Header */
#gbInquiryDrawer .gb-inquiry-header {
    padding: 28px 30px 14px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    flex-shrink: 0;
}

#gbInquiryDrawer .gb-inquiry-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 10px;
    color: #111111;
}

#gbInquiryDrawer .gb-inquiry-header p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #987553;
}

/* Close icon */
#gbInquiryDrawer #gbInquiryClose {
    width: 28px;
    height: 28px;

    padding: 0;
    border: none;
    background: transparent;

    color: #555555;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

#gbInquiryDrawer #gbInquiryClose:hover {
    color: #111111;
}

/* Products area */
#gbInquiryDrawer #gbInquiryItems {
    flex: 1;
    min-height: 0;

    overflow-y: auto;

    padding: 8px 30px;
}

/* Product row */
#gbInquiryDrawer .gb-cart-item {
    display: grid;

    grid-template-columns: 100px minmax(0, 1fr) 22px;

    column-gap: 20px;
    align-items: center;

    padding: 12px 0 24px;

    border: none;
}

/* Product image */
#gbInquiryDrawer .gb-cart-product-image {
    width: 100px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;
}

#gbInquiryDrawer .gb-cart-product-image img {
    width: 100px;
    height: 100px;

    object-fit: contain;
}

/* Product name and quantity */
#gbInquiryDrawer .gb-cart-product-info {
    min-width: 0;
}

#gbInquiryDrawer .gb-cart-product-name {
    margin: 0 0 22px;

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;

    text-transform: uppercase;
    color: #111111;
}

#gbInquiryDrawer .gb-cart-product-name a {
    color: #111111;
    text-decoration: none;
}

/* Quantity selector */
#gbInquiryDrawer .gb-cart-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 44px;

    border: 1px solid #cccccc;
    border-radius: 0;

    background: #ffffff;
}

#gbInquiryDrawer .gb-cart-qty-btn {
    width: 29px;
    height: 42px;

    padding: 0;
    border: 0;
    border-radius: 0;

    background: transparent;

    color: #777777;
    font-size: 18px;
    font-weight: 300;

    cursor: pointer;
}

#gbInquiryDrawer .gb-cart-qty-value {
    min-width: 32px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 500;
    color: #111111;
}

/* Remove button */
#gbInquiryDrawer .gb-cart-remove {
    width: 22px;
    height: 30px;

    padding: 0;
    border: 0;
    background: transparent;

    color: #666666;
    font-size: 25px;
    font-weight: 300;

    cursor: pointer;
}

#gbInquiryDrawer .gb-cart-remove:hover {
    color: #c67c43;
}

/* Footer quotation button */
#gbInquiryDrawer .gb-inquiry-footer {
    flex-shrink: 0;

    padding: 20px 30px 65px;

    background: #ffffff;
}

#gbInquiryDrawer .gb-quotation-button {
    width: 100%;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border: 1px solid #111111;
    border-radius: 0;

    color: #111111;

    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;

    text-transform: uppercase;
    text-decoration: none;
}

#gbInquiryDrawer .gb-quotation-button:hover {
    background: #291216;
    color: #ffffff;
}

/* Empty cart */
#gbInquiryDrawer .gb-cart-empty {
    margin-top: 70px;
    padding: 20px;
    text-align: center;
    color: #777777;
}

/* Mobile */
@media (max-width: 480px) {

    #gbInquiryDrawer {
        width: 100%;
    }

    #gbInquiryDrawer .gb-inquiry-header {
        padding: 25px 25px 14px;
    }

    #gbInquiryDrawer #gbInquiryItems {
        padding: 8px 25px;
    }

    #gbInquiryDrawer .gb-cart-item {
        grid-template-columns: 85px minmax(0, 1fr) 20px;
        column-gap: 12px;
    }

    #gbInquiryDrawer .gb-cart-product-image,
    #gbInquiryDrawer .gb-cart-product-image img {
        width: 85px;
        height: 85px;
    }

    #gbInquiryDrawer .gb-inquiry-footer {
        padding: 20px 25px 35px;
    }
}



