﻿/* ============================================ */
/* VIPROIDS - COOKIES POLICY PAGE STYLES       */
/* Solo estilos específicos de Cookies Policy  */
/* El resto viene de style.css                 */
/* ============================================ */

/* ============================================ */
/* POLICY HERO                                 */
/* ============================================ */
.policy-hero {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

.policy-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.policy-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
}

.policy-hero-icon {
    display: block;
    font-size: 70px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.policy-hero-title {
    font-family: 'New Amsterdam', sans-serif;
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 15px 0;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.policy-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ============================================ */
/* POLICY CONTAINER                            */
/* ============================================ */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 30px 80px;
    text-align: left;
}

/* ============================================ */
/* POLICY SECTIONS                             */
/* ============================================ */
.policy-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.policy-section h2 {
    font-family: 'New Amsterdam', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 107, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.policy-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
}

.policy-section h3 {
    font-family: 'New Amsterdam', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 30px 0 15px 0;
    letter-spacing: 1px;
}

/* ============================================ */
/* PARAGRAPHS                                  */
/* ============================================ */
.policy-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-section p strong {
    color: var(--primary-color);
}

/* ============================================ */
/* LISTS                                       */
/* ============================================ */
.policy-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.policy-list li {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
    transition: transform var(--transition-normal), color var(--transition-normal);
    line-height: 1.7;
}

.policy-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.policy-list li:hover {
    transform: translateX(5px);
    color: var(--text-primary);
}

.policy-list li:hover::before {
    transform: translateX(3px);
}

.policy-list li strong {
    color: var(--primary-color);
}

/* ============================================ */
/* TABLE                                       */
/* ============================================ */
.table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    min-width: 500px;
}

.cookies-table thead {
    background: rgba(255, 107, 0, 0.15);
}

.cookies-table th {
    color: var(--primary-color);
    font-family: 'New Amsterdam', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 107, 0, 0.3);
}

.cookies-table td {
    padding: 16px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-normal);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.cookies-table tr:last-child td {
    border-bottom: none;
}

.cookies-table tr:hover td {
    background: rgba(255, 107, 0, 0.05);
}

.cookies-table td:first-child {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'New Amsterdam', sans-serif;
    letter-spacing: 0.5px;
}

/* ============================================ */
/* INFO BOX                                    */
/* ============================================ */
.info-box {
    background: rgba(255, 107, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.info-box:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.info-box p {
    margin: 0;
    color: var(--text-secondary);
}

.info-box strong {
    color: var(--primary-color);
}

/* ============================================ */
/* WARNING BOX                                 */
/* ============================================ */
.warning-box {
    background: rgba(255, 152, 0, 0.08);
    border-left: 4px solid var(--warning-color);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.warning-box:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.warning-box p {
    margin: 0;
    color: var(--text-secondary);
}

.warning-box strong {
    color: var(--warning-color);
}

/* ============================================ */
/* CONTACT BOX                                 */
/* ============================================ */
.contact-box {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    border-bottom: none;
}

.contact-box h2 {
    border-bottom: none;
    text-align: center;
}

.contact-box h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-contact {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50px;
    font-family: 'New Amsterdam', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.5);
    color: #fff;
}

/* ============================================ */
/* RESPONSIVE                                  */
/* ============================================ */
@media (max-width: 900px) {
    .policy-container {
        padding: 50px 25px 70px;
    }

    .policy-section h2 {
        font-size: 1.4rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 14px 15px;
    }
}

@media (max-width: 768px) {
    .policy-hero {
        min-height: 280px;
    }

    .policy-hero-content {
        padding: 50px 20px;
    }

    .policy-hero-icon {
        font-size: 55px;
    }

    .policy-hero-title {
        letter-spacing: 2px;
    }

    .policy-container {
        padding: 40px 20px 60px;
    }

    .policy-section h2 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    .policy-section p {
        font-size: 0.95rem;
    }

    .info-box,
    .warning-box {
        padding: 15px 20px;
    }

    .contact-box {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .policy-hero {
        min-height: 240px;
    }

    .policy-hero-content {
        padding: 40px 15px;
    }

    .policy-hero-icon {
        font-size: 45px;
    }

    .policy-hero-title {
        letter-spacing: 1px;
    }

    .policy-container {
        padding: 30px 15px 50px;
    }

    .policy-section {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }

    .policy-section h2 {
        font-size: 1.15rem;
        letter-spacing: 1px;
    }

    .policy-section p,
    .policy-list li {
        font-size: 0.9rem;
    }

    .info-box,
    .warning-box {
        padding: 12px 15px;
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    }

    .contact-box {
        padding: 25px 20px;
    }

    .btn-contact {
        padding: 14px 30px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .cookies-table {
        min-width: 400px;
    }
}

/* ============================================ */
/* ACCESSIBILITY                               */
/* ============================================ */

    .policy-hero-icon {
        animation: none;
    }

    .policy-list li,
    .info-box,
    .warning-box {
        transition: none;
    }
}

.btn-contact:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.cookies-table tr:focus-within td {
    background: rgba(255, 107, 0, 0.08);
}

/* ============================================ */
/* PRINT STYLES                                */
/* ============================================ */
@media print {
    .policy-hero,
    header,
    footer,
    .cart-widget,
    .carousel,
    .cookie-banner,
    .promo-slidein,
    .promo-stickybar {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .policy-container {
        max-width: 100%;
        padding: 20px;
    }

    .policy-section {
        page-break-inside: avoid;
    }

    .policy-section h2 {
        color: #000;
        border-bottom-color: #000;
    }

    .policy-section h2::after {
        background: #000;
    }

    .policy-section p,
    .policy-list li,
    .cookies-table td {
        color: #333;
    }

    .policy-list li::before {
        color: #666;
    }

    .info-box,
    .warning-box {
        border: 1px solid #ccc;
        border-left-width: 4px;
        background: #f9f9f9;
    }

    .info-box strong {
        color: #333;
    }

    .warning-box strong {
        color: #856404;
    }

    .contact-box {
        border: 1px solid #ccc;
        background: #f5f5f5;
    }

    .btn-contact {
        display: none;
    }

    .cookies-table {
        min-width: auto;
    }

    .cookies-table thead {
        background: #eee;
    }

    .cookies-table th {
        color: #333;
        border-bottom-color: #999;
    }

    .table-wrapper {
        overflow: visible;
        border-color: #ccc;
    }
}

/* ============================================ */
/* HEADER ICONS                                */
/* ============================================ */
.header-icons {
    position: relative;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--bg-card);
    height: 48px;
}

.icon-link:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 0, 0.1);
}

.wishlist-icon,
.user-icon,
.cart-icon {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.wishlist-count {
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

@media (max-width: 992px) {
    .header-icons {
        gap: 8px;
    }

    .icon-link {
        height: 44px;
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    .icon-link {
        padding: 8px 12px;
        height: 40px;
    }

    .wishlist-icon,
    .user-icon,
    .cart-icon {
        font-size: 20px;
    }

    .cart-text {
        display: none;
    }
}

/* ============================================ */
/* SEARCH DROPDOWN                             */
/* ============================================ */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-header {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--bg-card-hover, #1e1e3a);
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-category {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.suggestion-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

.quick-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
}

.quick-search-tag {
    background: var(--bg-card-hover, #1e1e3a);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

.quick-search-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================ */
/* SCROLLBAR                                   */
/* ============================================ */
html {
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a1a;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* ============================================ */
/* SEARCH BAR RESPONSIVE FIX                   */
/* ============================================ */
@media (max-width: 768px) {
    .header-top {
        grid-template-columns: auto 1fr auto;
        padding: 10px 15px;
        gap: 10px;
    }

    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-top {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        padding: 10px;
        gap: 8px;
    }

    .logo-link {
        display: flex;
        grid-column: 1;
        grid-row: 1;
    }

    .search-container {
        max-width: 100%;
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header-icons {
        justify-content: flex-end;
        justify-self: end;
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 360px) {
    .header-top {
        padding: 8px;
        gap: 6px;
    }

    .search-form input {
        font-size: 14px;
        padding: 8px 10px;
    }

    .search-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}