/* ============================================================
   TAC9MA MASTER STYLESHEET
   W3.CSS Blue Overrides Only
   Brand Blue: #0C1F6B
   ============================================================ */

/* ============================================================
   W3.CSS BLUE OVERRIDE PACK
   ============================================================ */

/* Base Blue */
.w3-blue,
.w3-hover-blue:hover,
.w3-blue:hover {
    background-color: #0C1F6B !important;
    color: #fff !important;
}

/* Light Blue */
.w3-light-blue,
.w3-hover-light-blue:hover,
.w3-light-blue:hover {
    background-color: #0C1F6B !important;
    color: #fff !important;
}

/* Blue Text */
.w3-text-blue,
.w3-hover-text-blue:hover {
    color: #0C1F6B !important;
}

/* Blue Borders */
.w3-border-blue,
.w3-hover-border-blue:hover {
    border-color: #0C1F6B !important;
}

/* Blue Buttons */
.w3-button.w3-blue,
.w3-btn.w3-blue,
button.w3-blue,
a.w3-blue {
    background-color: #0C1F6B !important;
    color: #fff !important;
}

.w3-button.w3-blue:hover,
.w3-btn.w3-blue:hover,
button.w3-blue:hover,
a.w3-blue:hover {
    background-color: #0A1958 !important;
    color: #fff !important;
}

/* Focus States */
.w3-blue:focus,
button.w3-blue:focus,
a.w3-blue:focus {
    outline: 2px solid #0A1958 !important;
}

/* Outline Buttons */
.w3-button.w3-border-blue,
.w3-btn.w3-border-blue {
    border-color: #0C1F6B !important;
    color: #0C1F6B !important;
}

.w3-button.w3-border-blue:hover,
.w3-btn.w3-border-blue:hover {
    background-color: #0C1F6B !important;
    color: #fff !important;
}

/* Tags / Badges */
.w3-tag.w3-blue,
.w3-badge.w3-blue {
    background-color: #0C1F6B !important;
    color: #fff !important;
}

/* Panels / Cards */
.w3-panel.w3-blue,
.w3-card.w3-blue,

.to-top-row {
    text-align: center;
    margin: 24px 0 32px 0;
}

.to-top-row .to-top-btn {
    display: inline-block;
}
.w3-container.w3-blue {
    background-color: #0C1F6B !important;
    color: #fff !important;
}

/* Generic Hover */
.w3-hover-blue:hover {
    background-color: #0A1958 !important;
    color: #fff !important;
}

/* Strong override for W3 light-blue → TAC9MA Blue */
a.w3-light-blue,
.w3-button.w3-light-blue,
.w3-light-blue,
.w3-hover-light-blue:hover,
.w3-light-blue:hover {
    background-color: #0C1F6B !important;
    color: #fff !important;
    border-color: #0C1F6B !important;
}

/* Force correct TAC9MA blue for cart header */
#tac9-cart-header {
    background-color: #0C1F6B !important;
    color: #fff !important;
}

.tac9-section-header {
    background: #F53718;        /* your red */
    padding: 16px 0;            /* same vertical spacing as W3CSS */
    text-align: center;         /* centers the text */
    color: #fff;                /* white text */
}

.tac9-section-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.tac9-footer {
    background: #0C1F6B;        /* TAC9 blue */
    color: #fff;
    text-align: center;
    padding: 28px 0;           /* gives the footer height */
    margin-top: 40px;
}

.tac9-footer img {
    height: 60px;              /* prevents huge image */
    width: auto;
    display: block;
    margin: 0 auto 12px auto;  /* centers the logo */
}

.tac9-footer p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================================
   TAC9MA SLIDE‑IN CART DRAWER — MATCHES NEW script.js
   ============================================================ */

/* Drawer base */
#tac9-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2147483647 !important;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Drawer closed (default) */
#tac9-cart-drawer.closed {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

/* Drawer open */
#tac9-cart-drawer.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Drawer header */
#tac9-cart-header {
    background: #0C1F6B;
    color: #fff;
    padding: 16px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cart-logo {
    width: 36px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Close button */
#cart-close {
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
}

/* Scrollable content */
#tac9-cart-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 160px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Totals section */
#tac9-cart-totals {
    padding: 16px;
    border-top: 1px solid #ddd;
    background: #fafafa;
}

#tac9-cart-totals .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

#tac9-cart-totals .total {
    font-weight: 700;
    font-size: 18px;
}

/* Checkout button */
#checkout-btn {
    width: 100%;
    background: #0C1F6B;
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
    margin-top: 16px;
}

#checkout-btn:hover {
    background: #0A1958;
}

/* PayPal wrapper */
#paypal-buttons-wrap {
    display: block;          /* REQUIRED for PayPal */
    opacity: 0;
    transition: opacity 0.35s ease;
}

#paypal-buttons-wrap.show {
    opacity: 1;
}

/* ============================================================
   NEW TAC9 CART DRAWER ITEM LAYOUT
   ============================================================ */

.tac9-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #d3d3d3;
}

.tac9-cart-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tac9-cart-title {
    font-weight: 600;
    font-size: 15px;
}

.tac9-cart-options {
    font-size: 13px;
    color: #555;
    line-height: 1.3;
}

.tac9-cart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.tac9-qty-btn {
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
    border-radius: 4px;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
}

.tac9-qty-btn:hover {
    background: #ddd;
}

.tac9-cart-qty-value {
    font-size: 14px;
    min-width: 18px;
    text-align: center;
}

.tac9-cart-price {
    font-weight: 600;
    min-width: 55px;
    text-align: right;
    font-size: 15px;
}

.tac9-remove-btn {
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
    border-radius: 4px;
    background: #F53718;
    color: #fff;
    border: none;
    cursor: pointer;
}

.tac9-remove-btn:hover {
    background: #d62f14;
}

/* ============================================================
   NEW FLOATING CART BUTTON — TAC9 EMBLEM BADGE
   ============================================================ */

#tac9-floating-cart {
    position: fixed;
    bottom: 52px; /* raised from 22px*/
    right: 22px;
    width: 72px;
    height: 72px;
    z-index: 999998 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
}

#tac9-floating-cart:hover .tac9-cart-emblem {
    transform: scale(1.05);
}

.tac9-cart-emblem {
    position: relative;
    width: 83px;
    height: 120px;
}

@media (max-width: 600px) {
    #tac9-floating-cart {
        width: 64px;
        height: 64px;
        bottom: 32px;   /* lifts it up so it’s not on the bottom edge */
        right: 22px;
    }

    .tac9-cart-emblem {
        width: 64px;
        height: auto;   /* keeps the flame + shield proportions correct */
    }
}

.tac9-cart-svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.tac9-cart-count {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.9);
    pointer-events: none;
}

/* ============================================================
   ZOOMING HERO SECTION
   ============================================================ */

.zoom-section {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #000;
}

.zoom-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(1);
    transition: transform 1.5s ease-out;
}

.zoom-section.scrolled .zoom-bg {
    transform: scale(1.1);
}

/* Mobile zoom adjustments */
@media (max-width: 768px) {
    .zoom-bg {
        transform: scale(1); /* reset for mobile */
        transition: transform 0.35s ease-out;
    }

    .zoom-section.scrolled .zoom-bg {
        transform: scale(2.5); /* zoom only AFTER scroll */
    }
}
/* ============================================================
   TAC9MA CART ITEM CARDS (INSIDE DRAWER)
   ============================================================ */

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #0C1F6B;
}

.cart-item-variant {
    font-size: 13px;
    color: #555;
}

/* ============================================================
   QUANTITY STEPPER (INSIDE CART)
   ============================================================ */

.cart-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    height: 34px;
    width: 110px;
    background: #fff;
    margin-top: 4px;
}

.cart-qty-stepper button {
    width: 34px;
    height: 100%;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #000;
    transition: background 0.15s ease;
}

.cart-qty-stepper button:hover {
    background: #e8e8e8;
}

.cart-qty-stepper input {
    flex: 1;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 15px;
    color: #000;
    outline: none;
    background: #fff;
}

/* Remove native arrows */
.cart-qty-stepper input::-webkit-inner-spin-button,
.cart-qty-stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-qty-stepper input[type=number] {
    -moz-appearance: textfield;
}

/* PayPal section (fixed spacing) */
#paypal-section {
    padding: 0 16px 16px 16px;   /* equal left + right spacing */
}

#paypal-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#paypal-card-form {
    margin-top: 16px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 8px;
}
/* ============================================================
   REMOVE BUTTON
   ============================================================ */

.cart-item-remove {
    background: none;
    border: none;
    color: #e53935;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.15s ease;
}

.cart-item-remove:hover {
    color: #b71c1c;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

@media (max-width: 480px) {
    .cart-item {
        gap: 10px;
    }
    .cart-item img {
        width: 60px;
        height: 60px;
    }
    .cart-qty-stepper {
        width: 100px;
    }
}

/* ============================================================
   TAC9MA MERCH GRID — 4 / 2 / 1 LAYOUT (STABLE)
   ============================================================ */

.tac9-merch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Desktop: 4 per row */
    gap: 22px;
    padding: 20px;
}

/* Tablet: 2 per row */
@media (max-width: 1100px) {
    .tac9-merch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 per row */
@media (max-width: 560px) {
    .tac9-merch-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 14px;
        padding: 12px;
    }
}
/* ============================================================
   LIGHT THEME MERCH CARD — FINAL VERSION
   ============================================================ */

.tac9-merch-card {
    border: 2px solid #000 !important;
    border-radius: 6px !important;
    padding: 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    transition: box-shadow 0.2s ease !important;
    display: flex;
    flex-direction: column;
}

.tac9-merch-card:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.15) !important;
}

/* Title */
.tac9-merch-card h4 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0C1F6B !important;
    margin-bottom: 8px !important;
}

/* Price */
.tac9-merch-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 14px !important;
}

/* Labels */
.tac9-label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #0C1F6B !important;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    display: block !important;
}

/* Selects + Inputs */
.tac9-variant-select,
.tac9-personalization,
.tac9-font,
.tac9-qty-select,
.tac9-input,
.tac9-qty {
    width: 100% !important;
    padding: 8px 10px !important;
    border: 1px solid #999 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background: #fff !important;
    margin-bottom: 6px !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Add to Cart Button */
.tac9-btn,
.add-to-cart {
    width: 100% !important;
    background: #0C1F6B !important;
    color: #fff !important;
    padding: 12px !important;
    border-radius: 4px !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease !important;
}

.tac9-btn:hover,
.add-to-cart:hover {
    background: #0A1958 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

.tac9-btn:active,
.add-to-cart:active {
    transform: translateY(1px) !important;
}

/* ============================================================
   MAIN IMAGE
   ============================================================ */

.tac9-merch-image-wrap img,
.tac9-main-img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    margin-bottom: 12px !important;
    display: block !important;
    background-color: #f8f8f8 !important;
}

.tac9-main-img {
    cursor: zoom-in;
}

@media (min-width: 980px) {
    .tac9-merch-image-wrap img,
    .tac9-main-img {
        height: 300px !important;
    }
}

@media (max-width: 560px) {
    .tac9-merch-image-wrap img,
    .tac9-main-img {
        height: 200px !important;
    }
}

/* ============================================================
   THUMBNAIL STRIP
   ============================================================ */

.tac9-thumb-strip {
    display: flex !important;
    gap: 8px !important;
    margin-top: 10px !important;
    align-items: center !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
}

.tac9-thumb-strip img {
    width: 52px !important;
    height: 52px !important;
    object-fit: cover !important;
    border: 2px solid #ccc !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: border-color 0.18s ease, transform 0.18s ease !important;
}

.tac9-thumb-strip img:hover {
    transform: translateY(-2px) !important;
    border-color: #0C1F6B !important;
}

.tac9-thumb-strip img.active-thumb {
    border-color: #0C1F6B !important;
    box-shadow: 0 4px 10px rgba(12,31,107,0.12) !important;
}

.tac9-to-top {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 8px 0 !important;
    margin: 20px 0 !important;
    background: transparent !important;
}

.tac9-to-top .tac9-btn {
    display: inline-block !important;
}

#tac9-floating-top {
    position: fixed;
    bottom: 52px;   /* match cart emblem */
    left: 22px;
    width: 42px;
    height: 42px;
    background: #0C1F6B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999999;

    /* Thin TAC9 gold ring */
    border: 2px solid #d4b46a;

    /* Remove glow completely */
    box-shadow: none;

    /* Keep subtle lift shadow only */
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.25));
}

#tac9-floating-top:hover {
    transform: scale(1.05);
}

/* ============================================================
   TAC9 BRANDED DROPDOWN — 1PX BORDER TO MATCH QTY INPUT
   ============================================================ */

.tac9-variant-select,
.tac9-personalization,
.tac9-font,
.tac9-qty-select {
    height: 34px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    border: 1px solid #0C1F6B !important;
    background: #fff url("data:image/svg+xml;utf8,
        <svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%230C1F6B'>
            <path d='M7 10l5 5 5-5z'/>
        </svg>
    ") no-repeat right 10px center !important;
    background-size: 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0C1F6B !important;
    cursor: pointer !important;
}

.tac9-variant-select:hover,
.tac9-personalization:hover,
.tac9-font:hover,
.tac9-qty-select:hover {
    border-color: #0A1958 !important;
}
/* ============================================================
   END OF TAC9MA MASTER STYLESHEET
   ============================================================ */

