/**
 * Collections styles
 */

/* Collections dropdown in header menu */
.collections-menu-item {
    position: relative;
}

.collections-menu-item > a:after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: rotate(45deg);
    position: relative;
    top: -2px;
    transition: transform 0.3s ease;
}

.collections-menu-item:hover > a:after {
    transform: rotate(-135deg);
    top: 0;
}

.collections-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.collections-menu-item:hover .collections-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.collections-menu li {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.collections-menu li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.2s ease;
    font-size: 13px;
}

.collections-menu li a:hover {
    background-color: #f5f5f5;
}

/* Collection label on product card */
.product-collection {
    margin: 0 0 5px 0;
    width: auto;
    min-width: 100px;
    display: inline-block;
}

/* Collection label on single product page */
.right .product-collection {
    margin-bottom: 10px;
}

.product-collection .collection-link {
    font-size: 11px;
    color: #777;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    margin-right: 5px;
}

.product-collection .collection-link:hover {
    color: #000;
    text-decoration: underline;
}

.product-collection .collection-link:not(:last-child):after {
    content: ", ";
}

/* Collection page header */
.collection-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Dropdown menu collection styles */
.collections-menu .collection-info {
    display: flex;
    flex-direction: column;
}

.collections-menu .collection-title {
    font-size: 13px;
    font-weight: normal;
}

.collection-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.collection-image {
    max-width: 100%;
    margin: 0 auto 20px;
}

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

.collection-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}

/* Rich text content styles */
.collection-description h1,
.collection-description h2,
.collection-description h3,
.collection-description h4,
.collection-description h5,
.collection-description h6 {
    margin-bottom: 15px;
    font-weight: 600;
}

.collection-description h1 { font-size: 28px; }
.collection-description h2 { font-size: 24px; }
.collection-description h3 { font-size: 20px; }
.collection-description h4 { font-size: 18px; }
.collection-description h5 { font-size: 16px; }
.collection-description h6 { font-size: 14px; }

.collection-description p {
    margin-bottom: 15px;
}

.collection-description ul,
.collection-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.collection-description ul li {
    list-style-type: disc;
    margin-bottom: 5px;
}

.collection-description ol li {
    list-style-type: decimal;
    margin-bottom: 5px;
}

.collection-description a {
    color: #000;
    text-decoration: underline;
}

.collection-description a:hover {
    text-decoration: none;
}

.collection-description img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.collection-description blockquote {
    border-left: 3px solid #000;
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
}

.collection-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.collection-description table th,
.collection-description table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

/* Responsive styles */
@media (max-width: 768px) {
    .collections-dropdown {
        display: none;
    }
    
    .collection-title {
        font-size: 24px;
    }
    
    .collection-description {
        font-size: 14px;
    }
}
