/* ============================================
   BREAKRETURNS MOBILE & TABLET RESPONSIVE CSS
   ============================================ */

/* ===================
   HAMBURGER MENU
   =================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--gold-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================
   TABLET (768px - 1024px)
   =================== */
@media (max-width: 1024px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    nav {
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--black-deep) 0%, var(--grey-dark) 100%);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--grey-medium);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }

    .nav-links .btn {
        margin-top: 20px;
        text-align: center;
    }

    /* Mobile nav overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    /* Dashboard Grid */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    /* Break Detail - Stack Layout */
    .break-detail-layout {
        flex-direction: column !important;
    }

    .break-detail-layout > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .livestream-container {
        height: 400px !important;
    }

    .chat-container {
        height: 350px !important;
        margin-top: 20px;
    }

    /* Admin Panel Tabs */
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .admin-tab {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Admin Stats Grid */
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Profile Page */
    .profile-grid {
        grid-template-columns: 1fr !important;
    }

    .profile-section {
        padding: 20px;
    }

    /* Auction Carousel */
    .auction-carousel-container {
        padding: 0 10px;
    }

    .auction-card {
        min-width: 280px;
    }

    /* Breaks Grid */
    .breaks-grid {
        grid-template-columns: repeat(2, 280px) !important;
    }
}

/* ===================
   MOBILE (max 768px)
   =================== */
@media (max-width: 768px) {
    /* General */
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    /* Header */
    header .container {
        padding: 15px 16px;
    }

    .logo {
        font-size: 20px;
    }

    /* Navigation - Full Width */
    .nav-links {
        width: 100%;
        right: -100%;
    }

    /* Dashboard */
    .dashboard-container {
        padding: 20px 0;
    }

    .dashboard-title {
        font-size: 24px !important;
        margin-bottom: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px !important;
    }

    .stat-title {
        font-size: 14px !important;
    }

    /* Break Detail */
    .break-detail-container {
        padding: 16px;
    }

    .livestream-container {
        height: 250px !important;
        border-radius: 8px;
    }

    .livestream-container iframe {
        border-radius: 8px;
    }

    .chat-container {
        height: 300px !important;
        margin-top: 16px;
    }

    .chat-messages {
        padding: 12px;
    }

    .chat-input-container {
        padding: 12px;
    }

    .chat-input-container input {
        font-size: 14px;
    }

    /* Auction Section */
    .auction-section {
        padding: 16px;
    }

    .auction-carousel {
        gap: 12px;
    }

    .auction-card {
        min-width: 260px;
        padding: 12px;
    }

    .auction-card img {
        height: 150px;
    }

    /* Breaks Grid */
    .breaks-grid {
        grid-template-columns: 1fr !important;
        max-width: 350px;
        margin: 20px auto;
        gap: 16px;
    }

    .break-tile {
        height: auto !important;
        min-height: auto !important;
    }

    .break-tile-image {
        height: 200px;
    }

    /* Auth Pages */
    .auth-container {
        margin: 30px auto;
        padding: 16px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-title {
        font-size: 28px !important;
    }

    /* Profile Page */
    .profile-container {
        padding: 16px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-picture {
        margin: 0 auto;
    }

    .profile-sections {
        gap: 16px;
    }

    .profile-section {
        padding: 16px;
    }

    .profile-form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Admin Panel */
    .admin-container {
        padding: 16px;
    }

    .admin-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .admin-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }

    .admin-stat-card {
        padding: 16px;
    }

    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Cards */
    .card {
        padding: 16px;
        border-radius: 10px;
    }

    /* Forms */
    .form-input, .form-select, .form-textarea {
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Cart Sidebar - Already handled, ensure full width */
    .cart-sidebar,
    .cart-sidebar-content {
        width: 100% !important;
        right: -100% !important;
    }

    .cart-sidebar.open,
    .cart-sidebar.open .cart-sidebar-content {
        right: 0 !important;
    }

    /* Auction Cart Sidebar */
    #auction-cart-sidebar {
        width: 100% !important;
    }

    /* Previous Breaks */
    .previous-breaks-grid {
        grid-template-columns: 1fr !important;
    }

    /* Home Page */
    .home-container {
        padding: 40px 16px;
    }

    .home-title {
        font-size: 32px !important;
    }

    .home-subtitle {
        font-size: 16px;
    }

    .home-features {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    /* Footer */
    footer {
        padding: 30px 16px;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ===================
   SMALL MOBILE (max 480px)
   =================== */
@media (max-width: 480px) {
    /* Dashboard - Single Column */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 22px !important;
    }

    /* Admin Stats - Single Column */
    .admin-stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Break Tiles */
    .breaks-grid {
        max-width: 100%;
        padding: 0 16px;
    }

    .break-tile {
        padding: 12px;
    }

    .break-tile-image {
        height: 180px;
    }

    /* Buttons Stack */
    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group .btn {
        width: 100%;
    }

    /* Modal Fullscreen */
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    /* Livestream */
    .livestream-container {
        height: 200px !important;
    }

    /* Auction Card */
    .auction-card {
        min-width: 100%;
    }

    .auction-card img {
        height: 140px;
    }
}

/* ===================
   TOUCH IMPROVEMENTS
   =================== */
@media (pointer: coarse) {
    /* Bigger touch targets */
    .btn, button {
        min-height: 44px;
    }

    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    input, select, textarea {
        min-height: 44px;
    }

    /* Remove hover effects that don't work on touch */
    .break-tile:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Better scrolling */
    .auction-carousel {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .auction-card {
        scroll-snap-align: center;
    }
}

/* ===================
   LANDSCAPE MOBILE
   =================== */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-links {
        padding-top: 60px;
    }

    .livestream-container {
        height: 70vh !important;
    }

    .modal-content {
        max-height: 95vh;
    }
}

/* ===================
   PRINT STYLES
   =================== */
@media print {
    .hamburger,
    .nav-links,
    .cart-sidebar,
    #auction-cart-sidebar,
    .chat-container,
    footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
/* ===================
   CART SIDEBAR FIXES
   =================== */

/* Ensure close button is visible and clickable */
.cart-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    padding: 8px 12px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10002;
}

.cart-close:hover {
    color: var(--gold-primary);
}

/* Fix cart overlay to be clickable */
.cart-overlay {
    cursor: pointer;
}

/* Ensure cart sidebar structure is correct */
.cart-sidebar {
    display: flex;
    flex-direction: column;
}

/* ===================
   DASHBOARD STATS OVERFLOW FIX
   =================== */

/* Previous investments / ROI overflow fix */
.stat-card,
.investment-stat,
.roi-stat {
    overflow: hidden;
    word-wrap: break-word;
}

.stat-value {
    font-size: clamp(18px, 4vw, 32px) !important;
    word-break: break-word;
}

.lifetime-stats-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.lifetime-stats-banner > div {
    flex: 1 1 120px;
    min-width: 100px;
    max-width: 200px;
    text-align: center;
}

/* Fix stats that overflow on mobile */
@media (max-width: 768px) {
    .lifetime-stats-banner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lifetime-stats-banner > div {
        max-width: 100%;
        padding: 12px;
        background: var(--grey-dark);
        border-radius: 8px;
    }
    
    .investment-card,
    .break-investment-card {
        overflow-x: hidden;
    }
    
    .investment-card * {
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

/* ===================
   BREAK DETAIL PAGE - MOBILE
   =================== */

@media (max-width: 1024px) {
    /* Stack layout for break detail */
    .break-detail-main {
        flex-direction: column !important;
        gap: 16px;
    }
    
    .break-detail-main > * {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Video container */
    .video-section,
    .livestream-section,
    .stream-container,
    [class*="livestream"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .video-section iframe,
    .livestream-section iframe,
    .stream-container iframe {
        width: 100% !important;
        height: 300px !important;
    }
}

@media (max-width: 768px) {
    /* Break detail container */
    .break-detail-container,
    .break-page-container {
        padding: 12px !important;
    }
    
    /* Livestream - shorter on mobile */
    .video-section iframe,
    .livestream-section iframe,
    .stream-container iframe,
    iframe[src*="youtube"] {
        height: 220px !important;
    }
    
    /* Chat below video, shorter */
    .chat-section,
    .chat-container,
    .chat-box,
    [class*="chat-container"] {
        width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
        max-height: 200px !important;
        margin-top: 12px;
    }
    
    .chat-messages {
        max-height: 120px !important;
        overflow-y: auto;
    }
    
    .chat-input-container {
        padding: 8px !important;
    }
    
    .chat-input-container input {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }
    
    .chat-input-container button {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    /* Break info section */
    .break-info-section {
        padding: 12px !important;
    }
    
    .break-info-section h1 {
        font-size: 20px !important;
    }
}

/* ===================
   AUCTION CART SIDEBAR FIX
   =================== */

#auction-cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--black-deep);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#auction-cart-sidebar.open {
    right: 0;
}

@media (max-width: 768px) {
    #auction-cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* ===================
   TABLE OVERFLOW FIX
   =================== */

.table-responsive,
.admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 100%;
}

@media (max-width: 768px) {
    table th,
    table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    /* Hide less important columns on mobile */
    .hide-mobile {
        display: none !important;
    }
}

/* ===================
   GENERAL OVERFLOW PREVENTION
   =================== */

* {
    max-width: 100%;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.container {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}
/* ===================
   BREAK DETAIL LAYOUT CLASSES
   =================== */

.break-livestream-layout {
    grid-template-columns: 3fr 1fr;
    min-height: 480px;
}

.break-chat-container {
    height: 480px;
}

.livestream-iframe {
    height: 480px;
}

@media (max-width: 1024px) {
    .break-livestream-layout {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    
    .livestream-iframe {
        height: 350px !important;
    }
    
    .break-chat-container {
        height: 280px !important;
    }
}

@media (max-width: 768px) {
    .break-livestream-layout {
        gap: 12px !important;
    }
    
    .livestream-iframe {
        height: 220px !important;
    }
    
    .break-chat-container {
        height: 200px !important;
    }
    
    #chat-messages {
        max-height: 100px !important;
    }
    
    #chat-form input {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }
    
    #chat-form button {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .livestream-iframe {
        height: 180px !important;
    }
    
    .break-chat-container {
        height: 180px !important;
    }
    
    #chat-messages {
        max-height: 80px !important;
    }
}
/* ===================
   DASHBOARD STATS GRID FIX
   =================== */

.lifetime-stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stat-number {
    font-size: 1.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 900px) {
    .lifetime-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .stat-number {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .lifetime-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .stat-number {
        font-size: 1.1rem !important;
    }
}

/* Break accordion overflow fix */
.break-accordion {
    overflow: hidden;
}

.break-accordion > div {
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .break-accordion > div > div {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .break-accordion span,
    .break-accordion a {
        font-size: 12px !important;
    }
}

/* ===================
   HOME PAGE STRATEGY SECTION FIX
   =================== */

.home-container {
    overflow-x: hidden;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .strategy-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .home-container h1 {
        font-size: 32px !important;
    }
    
    .home-container > div {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Strategy section padding fix */
    .strategy-section {
        padding: 24px 16px !important;
    }
}

@media (max-width: 480px) {
    .strategy-grid {
        gap: 20px !important;
    }
    
    .home-container h1 {
        font-size: 28px !important;
    }
    
    .home-container h2 {
        font-size: 22px !important;
    }
}

/* ===================
   CURRENT INVESTMENTS GRID FIX
   =================== */

.investment-stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .investment-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .investment-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    
    .investment-stats-grid > div {
        font-size: 12px;
    }
    
    .investment-stats-grid > div > div:last-child {
        font-size: 14px !important;
    }
}
/* ===================
   CART SIDEBAR DESKTOP FIX
   =================== */

/* Reset conflicting cart sidebar styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: linear-gradient(145deg, var(--black-deep), var(--black-medium));
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

/* Header stays at top */
.cart-sidebar-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--grey-medium);
    background: var(--black-deep);
}

/* Content area - scrollable, with padding */
.cart-sidebar #cart-sidebar-content,
#cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

/* When cart is empty or login required - center vertically */
#cart-sidebar-content > p:only-child {
    margin: auto;
    text-align: center;
    padding: 40px 20px;
}

/* Cart items section */
.cart-items {
    flex: 1;
    margin-bottom: 16px;
}

.cart-item {
    background: var(--grey-dark);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--grey-medium);
}

/* Close button styling */
.cart-close,
#cart-close {
    background: var(--grey-medium);
    border: none;
    color: var(--white);
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.cart-close:hover,
#cart-close:hover {
    background: var(--ruby);
    color: var(--white);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    #cart-sidebar-content {
        padding: 16px;
    }
}
/* ===================
   PREVIOUS BREAKS PAGE FIX
   =================== */
/* Previous breaks grid class */
.previous-breaks-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

@media (max-width: 768px) {
    .previous-breaks-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 400px) {
    .previous-breaks-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}
/* ===================
   AUCTION CART SIDEBAR FIX
   =================== */

#auction-cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#auction-cart-sidebar.open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

#auction-cart-sidebar .cart-sidebar-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

#auction-cart-sidebar .cart-sidebar-content {
    position: absolute;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: linear-gradient(145deg, var(--black-deep), var(--black-medium));
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

#auction-cart-sidebar.open .cart-sidebar-content {
    right: 0;
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--grey-medium);
    background: var(--black-deep);
    flex-shrink: 0;
}

.cart-header h2 {
    margin: 0;
    font-size: 20px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Close Button */
.cart-close-btn {
    background: var(--grey-medium);
    border: none;
    color: var(--white);
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.cart-close-btn:hover {
    background: var(--ruby);
    transform: scale(1.05);
}

/* Cart Body */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #auction-cart-sidebar .cart-sidebar-content {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 16px;
    }
    
    .cart-header h2 {
        font-size: 18px;
    }
    
    .cart-close-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .cart-body {
        padding: 16px;
    }
}
/* ===================
   SHARE QUANTITY SELECTOR FIX
   =================== */

.shares-input {
    width: 60px !important;
    max-width: 60px !important;
    text-align: center !important;
    -moz-appearance: textfield;
}

.shares-input::-webkit-outer-spin-button,
.shares-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: var(--grey-medium);
    border: 1px solid var(--grey-light);
    border-radius: 6px;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: var(--gold-primary);
    color: var(--black-deep);
    border-color: var(--gold-primary);
}

.qty-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .shares-input {
        width: 50px !important;
        height: 40px;
        font-size: 16px !important;
    }
}
/* ===================
   SOLD OUT BREAK STYLING
   =================== */

.break-tile.sold-out {
    position: relative;
    opacity: 0.7;
}

.break-tile.sold-out:hover {
    opacity: 0.85;
}

.sold-out-banner {
    position: absolute;
    top: 16px;
    right: -30px;
    background: var(--ruby);
    color: white;
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
}

.break-tile.sold-out .break-tile-image,
.break-tile.sold-out .break-tile-placeholder {
    filter: grayscale(50%);
}

.sold-out-section {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    margin-top: auto;
}

@media (max-width: 768px) {
    .sold-out-banner {
        padding: 4px 30px;
        font-size: 10px;
        right: -25px;
        top: 12px;
    }
}